[Rcpp-devel] cannot find functions when using devtools::install_github
Dirk Eddelbuettel
edd at debian.org
Sun Sep 28 17:55:30 CEST 2014
On 28 September 2014 at 09:28, Kevin Kunzmann wrote:
| so I am making slow but steady progress using the great Rcpp Ecosystem -
| this is so valuable to the 'occasional' C++ coder... It is only when you
| need to write a C extension for R that you realize why you switched to R
| from C in the first place ;)
|
| So back to topic: When I try to use
|
| install_github('kkmann/cme/', ref='dev')
|
| and call
|
| pMax
|
| R does not find the name pMax (I am not trying to call it for the
| purpose of this test, the name is just not defined). However, if I do
|
| git clone https://github.com/kkmann/cme.git
| cd cme
| git checkout dev
| R CMD INSTALL .
|
| R does find the name pMax. What might cause this? I tried not tracking
| the RcppExports.cpp/R but that did not work either.
My (rather personal and possibly minority) opinion is that devtools adds
another layer of obfuscation that you then need to debug in case of failure.
So I tend to get by quite well without it ... YMMV.
If the second method works, why don't just use it?
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list