Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Tim Keitt
On Thu, Mar 30, 2017 at 9:15 PM, Tim Keitt wrote: > Here's another: > I made a few tweaks. Seems to work so far. https://github.com/thk686/odeintr/blob/master/src/gen_init_c.R http://www.keittlab.org/ ___ Rcpp-devel mailing list Rcpp-devel@lists.r-fo

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Tim Keitt
http://www.keittlab.org/ On Thu, Mar 30, 2017 at 4:00 PM, Dirk Eddelbuettel wrote: > > The function creating the src/init.c file was already written by Brian > Ripley > and Kurt Hornik. > Here's another: contents = readLines("src/RcppExports.cpp") protos = grep("^RcppExport", contents, value =

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Dirk Eddelbuettel
On 30 March 2017 at 15:35, Tim Keitt wrote: | | On Thu, Mar 30, 2017 at 3:29 PM, Dirk Eddelbuettel wrote: | | Please accomodate the latter and the spirit of the law, | | But if you don't intend to export functions to others, then is it correct to | not register them? Or is there a reason f

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Tim Keitt
On Thu, Mar 30, 2017 at 3:29 PM, Dirk Eddelbuettel wrote: > Please accomodate the latter and the spirit of the law, But if you don't intend to export functions to others, then is it correct to not register them? Or is there a reason for to register anyway? That was my point of confusion. "Easy

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Dirk Eddelbuettel
On 30 March 2017 at 15:06, Tim Keitt wrote: | If you don't want to register anything, this snippet placed in init.c will get | you past CRAN checks currently: Boooh. Please accomodate the latter and the spirit of the law, if you can. I have done so with every package I uploaded in the last few we

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Avraham Adler
On Thu, Mar 30, 2017 at 4:06 PM, Tim Keitt wrote: > > On Thu, Mar 30, 2017 at 2:55 PM, Avraham Adler > wrote: > >> If so, do I add >> them asa regards the functions *I* wrote in lamw.cpp or as regards the >> function wrappers that Rcpp wrote and the .R files call in >> RcppExports.R? >> > > I'm

Re: [Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Tim Keitt
On Thu, Mar 30, 2017 at 2:55 PM, Avraham Adler wrote: > If so, do I add > them asa regards the functions *I* wrote in lamw.cpp or as regards the > function wrappers that Rcpp wrote and the .R files call in > RcppExports.R? > I'm a bit confused about this as well. My impression is that the only r

[Rcpp-devel] Question regarding new pacakge registration requirements

2017-03-30 Thread Avraham Adler
With the changes to requested form of package registration, I want to ensure that my packages comply. One of them, lamW [1], uses Rcpp—actually RcppParallel. When looking through the source created by Rcpp, I can find the RRegisterCallable calls in RcppExports.src. However, I cannot find any refere