Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Dirk Eddelbuettel
Asis, It works fine here: edd@don:/tmp/foobar$ rm src/*.o src/*.so edd@don:/tmp/foobar$ grep Tables src/* R/* src/rcpp_hello_world.cpp:RcppExport SEXP conditionalProbabilityTables(){ src/rcpp_hello_world.h:RcppExport SEXP conditionalProbabilityTables() ; R/rcpp_hello_world.R: .Call(

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Dale Smith
Since you changed the function name, you can no longer call rcpp_hello_world() from R. Try calling the new function name. Better yet, start over, leave rcpp_hello_world code alone and add another .cpp, .h, and .R file with another function. Dale On May 29, 2013, at 8:41 PM, Asis Hallab wrote:

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Asis Hallab
Dear Dirk, Hadley and Rccp Experts, thank you very much for your input. Unfortunately I still cannot solve my problem. I took Dirk's advise and used Rcpp.package.skeleton(name="foobar") to create a new Hello-World package. Then I build and installed it with R CMD INSTALL foobar/ >From an interac

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Dirk Eddelbuettel
Hi Asis On 29 May 2013 at 15:20, Asis Hallab wrote: | Dear Rcpp Experts, | | hopefully this question of mine is not too stupid. | | Well, I am a greenhorn with Rcpp and my C/C++ expertise is quite dusty. | | I generated a new Rccp package and changed the hello_world function. | The attached Rc

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Hadley Wickham
> I generated a new Rccp package and changed the hello_world function. > The attached Rcpp Code stops working if I rename the method > "rcpp_hello_world" to > "conditionalProbabilityTables". The error I get is: > "conditionalProbabilityTables" not available for .Call() for package > "PhyloFun" > >

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Chris Jefferson
On 29/05/13 14:20, Asis Hallab wrote: Dear Rcpp Experts, hopefully this question of mine is not too stupid. Well, I am a greenhorn with Rcpp and my C/C++ expertise is quite dusty. I generated a new Rccp package and changed the hello_world function. The attached Rcpp Code stops working if I ren

[Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Asis Hallab
Dear Rcpp Experts, hopefully this question of mine is not too stupid. Well, I am a greenhorn with Rcpp and my C/C++ expertise is quite dusty. I generated a new Rccp package and changed the hello_world function. The attached Rcpp Code stops working if I rename the method "rcpp_hello_world" to "co