[Rcpp-devel] Question on 5.6 Interfacing C++ code
Hi, I have a quick couple of questions about some of the documentation on the web page: http://cran.r-project.org/doc/manuals/R-exts.html#Linking-GUIs-and-other-fro nt_002dends-to-R under the heading: 5.6 Interfacing C++ code Question 1: If I?m at a terminal, I can type the instructions they suggest: R CMD SHLIB X.cc X_main.cc If I wanted a package to do this, how would I tell the package to do that same thing? Would I use the same command and just include it in a file somewhere in the package? If so, which file? Question 2: dyn.load(paste("X", .Platform$dynlib.ext, sep = "")) Where does .Platform$dynlib.ext come from? What does it mean? What do it?s components .Platform and $dynlib and .ext mean? Thanks, Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110420/859ac7d0/attachment.htm>