Re: [Rcpp-devel] Issues creating static library using Makevars

2020-07-08 Thread Dirk Eddelbuettel
Toby, Akhila, Yes, it is all somewhat non-linear and unsatisfying. For a different deployment reason I was just looking again at Rserve --- and then though "hm wonder what its CRAN check looks like" and it is not exactly spotless either: https://cloud.r-project.org/web/checks/check_results_Rs

Re: [Rcpp-devel] Issues creating static library using Makevars

2020-06-29 Thread Toby Hocking
Hi Dirk thanks for the feedback. So I guess that means those are new WARNING messages on CRAN that were not there at the time RInside was accepted on CRAN, right? I would suggest moving the discussion to R-pkg-devel to see if CRAN could recommend a way to support install-time compilation of the sta

Re: [Rcpp-devel] Issues creating static library using Makevars

2020-06-27 Thread Dirk Eddelbuettel
Toby, Akhila, My bad, I'm sorry! So I went back glancing at https://cloud.r-project.org/web/checks/check_results_RInside.html and the only clear suggestion is that one would probably no longer get a package like that admitted. That is potentially bad news for your project. Sorry to be beare

Re: [Rcpp-devel] Issues creating static library using Makevars

2020-06-27 Thread Dirk Eddelbuettel
Toby, Well but not one of the questions raised by Akhila had anything to do with an static library. The questions were, in turn, about - not calling exit() and like - need to call ‘R_registerRoutines’, ‘R_useDynamicSymbols’ - not use system RNGs all of which are standard packaging issues,

Re: [Rcpp-devel] Issues creating static library using Makevars

2020-06-27 Thread Toby Hocking
Right, Writing R Extensions is a great reference. To clarify the question, we are developing a package like RInside, which contains some compiled C++ code that is not meant to be used from R main. We would like to distribute the C++ source code in an R package (like RInside), so we are trying to fi

Re: [Rcpp-devel] Issues creating static library using Makevars

2020-06-26 Thread Dirk Eddelbuettel
On 26 June 2020 at 15:55, Akhila Chowdary Kolla wrote: | But when I check the package I get the following warnings: using | devtools::check() | ‘../inst/include/Log.o’ File ‘testproject/libs/testproject.so’: Found | no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’Compiled code |

[Rcpp-devel] Issues creating static library using Makevars

2020-06-26 Thread Akhila Chowdary Kolla
Hello Everyone, I am trying to generate a C static library(libdeepstate.a) in an Rcpp(inst/include/lib) package using Makevars similar to RInside(generating RInside.so and RInside.a) My static library libdeepstate.a has four compiled c programs [image: image.png] I saved those files DeepState.c,