Thanks. I figured it was a simple problem. Now I have a working toy package that successfully uses both Rcpp Modules and CUDA :)
-Andrew On Thu, Nov 4, 2010 at 1:51 PM, Romain Francois <[email protected]>wrote: > Ok. Now it is much more easier to help. > > This works for me: > > > require( anRpackage ) > Le chargement a nécessité le package : anRpackage > Le chargement a nécessité le package : Rcpp > > yada <- Module( "yada", "anRpackage" ) > > yada$hello() > Erreur dans yada$hello() : boom > > The key is the second argument of Module. > > Romain > > Le 04/11/10 20:42, Andrew Redd a écrit : > >> I run these: >> >> Rscript -e "Rcpp::Rcpp.package.skeleton(module=T)" >> R CMD build anRpackage >> R CMD INSTALL anRpackage_0.1.tar.gz >> R >> >> R> library(anRpackage) >> R> Module('yada')$hello() >> Error in Module(module, mustStart = TRUE) : >> Failed to initialize module pointer: Error in >> FUN("_rcpp_module_boot_yada"[[1L]], ...): no such symbol >> _rcpp_module_boot_yada in package .GlobalEnv >> >> Should this work? It's not working in my code, so I figured I'd try the >> example only to be dismayed that didn't work either. >> >> -Andrew >> >> >> >> >> On Thu, Nov 4, 2010 at 1:39 PM, Romain Francois >> <[email protected] <mailto:[email protected]>> wrote: >> >> Hi, >> >> How about sharing the code that triggers the error. >> >> It is like your car is broken and you call your insurance to fix it, >> but you don't tell them where you are. >> >> Romain >> >> Le 04/11/10 20:29, Andrew Redd a écrit : >> >> I'm getting what I assume is a basic error, but I'm not sure >> what I'm >> doing wrong. >> >> Error in Module(module, mustStart = TRUE) : >> Failed to initialize module pointer: Error in >> FUN("_rcpp_module_boot_vecadd"[[1L]], ...): no such symbol >> _rcpp_module_boot_vecadd in package .GlobalEnv >> >> is the error when trying to load the module. What is going wrong? >> >> Thanks, >> -Andrew >> >> >> -- >> Romain Francois >> Professional R Enthusiast >> +33(0) 6 28 91 30 30 >> http://romainfrancois.blog.free.fr >> |- http://bit.ly/czHPM7 : Rcpp Google tech talk on youtube >> |- http://bit.ly/9P0eF9 : Google slides >> `- http://bit.ly/cVPjPe : Chicago R Meetup slides >> >> >> _______________________________________________ >> Rcpp-devel mailing list >> [email protected] >> <mailto:[email protected]> >> >> >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel >> >> >> > > -- > Romain Francois > Professional R Enthusiast > +33(0) 6 28 91 30 30 > http://romainfrancois.blog.free.fr > |- http://bit.ly/czHPM7 : Rcpp Google tech talk on youtube > |- http://bit.ly/9P0eF9 : Google slides > `- http://bit.ly/cVPjPe : Chicago R Meetup slides > > >
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
