Skip to content
Prev 4052 / 10988 Next

[Rcpp-devel] Creating a Rcpp package : Visual C++ Library error

As I was going through the Rcpp Quick Reference Guide, I just found a
solution to my problem :
In the .R file of my package, in the .Call function, there was no
argument telling my function needed an input variable... I added this,
rebuilt/installed the package, and now it works.
The new .R file :

sum2cpp <- function (x) {.Call( "sum2cpp", x, PACKAGE = "starFMcpp" ) }

Sorry for the two unnecessary mails I sent !

Valentin


2012/7/18 Valentin Mansion <valentin.mansion at laposte.net>: