Re: [Rd] inconsistent handling of factor, character, and logical predictors in lm()

2019-08-30 Thread Abby Spurdle
> I think that it would be better to handle factors, character predictors, and > logical predictors consistently. "logical predictors" can be regarded as categorical or continuous (i.e. 0 or 1). And the model matrix should be the same, either way. I think the first question to be asked is,

[Rd] New lazyload rdx key type: list(eagerKey=, lazyKeys=)

2019-08-30 Thread William Dunlap via R-devel
Prior to R-3.6.0 the keys in the lazyload key files, e.g. pkg/data/Rdata.rdx or pkg/R/pkg.rdx, seemed to all be 2-long integer vectors. Now they can be lists. The ones I have seen have two components, "eagerKey" is a 2-long integer vector and "lazyKeys" is a named list of 2-long integer vectors.

[R-pkg-devel] set pkg_config for 3rd party software

2019-08-30 Thread Sameh M. Abdulah
Hi, I recently asked some questions about my R package which were well responded by Dirk. I have another question related to pkg_config path, I am using this command to add the installation path to the PKG_CONFIG_PATH so that all cmake commands can get the required libraries from this path,

[Rd] inconsistent handling of factor, character, and logical predictors in lm()

2019-08-30 Thread Fox, John
Dear R-devel list members, I've discovered an inconsistency in how lm() and similar functions handle logical predictors as opposed to factor or character predictors. An "lm" object for a model that includes factor or character predictors includes the levels of a factor or unique values of a

Re: [Rd] ?Syntax wrong about `?`'s precedence ?

2019-08-30 Thread peter dalgaard
...and 14955, which seems to have the explanation (but was marked as closed/fixed??). The parser does list '?' as lower precedence than '=', but '='-assignments are not normal 'expr's which can appear as arguments to '?'. (Presumably because of named arguments: f(a=b) differs from f(a<-b).)

Re: [R-pkg-devel] General considerations about vignettes

2019-08-30 Thread Georgi Boshnakov
When adding static vignettes, it is a good idea to put the 'real' ones somewhere under inst/doc. A manual index file under inst/doc/ will add the benefit that the help system will present to the user the real code and not the stub Rnw in the approach suggested by Michael. Package Countr

Re: [Rd] ?Syntax wrong about `?`'s precedence ?

2019-08-30 Thread Kevin Ushey
See also: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16710 On Fri, Aug 30, 2019 at 9:02 AM William Dunlap via R-devel wrote: > > Precedence is a property of the parser and has nothing to do with the > semantics assigned to various symbols. Using just core R functions you can > see the

Re: [Rd] ?Syntax wrong about `?`'s precedence ?

2019-08-30 Thread William Dunlap via R-devel
Precedence is a property of the parser and has nothing to do with the semantics assigned to various symbols. Using just core R functions you can see the precedence of '?' is between those of '=' and '<-'. > # '=' has lower precedence than '?' > str(as.list(parse(text="a ? b = c")[[1]])) List of

Re: [R-pkg-devel] General considerations about vignettes

2019-08-30 Thread Mark van der Loo
At the cost of some level of reproducibility, you could use a static vignette and be very clear about the package versions used in the comparisons: http://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/ As this does diminish the coherence of CRAN somewhat I'm not

Re: [R-pkg-devel] third part software dependency

2019-08-30 Thread Serguei Sokol
On 30/08/2019 15:58, Dirk Eddelbuettel wrote: On 30 August 2019 at 07:24, Dirk Eddelbuettel wrote: | | On 30 August 2019 at 11:10, Serguei Sokol wrote: | | I am preparing a new package r2sundials for submission to cran. It | | depends on third part software | |

Re: [R-pkg-devel] General considerations about vignettes

2019-08-30 Thread Michael Dewey
Comments in-line On 30/08/2019 14:59, Iñaki Ucar wrote: On Fri, 30 Aug 2019 at 15:26, J C Nash wrote: I'm seeking some general advice about including vignettes in my packages, which are largely for nonlinear estimation and function minimization (optimization). This means that my packages

Re: [R-pkg-devel] third part software dependency

2019-08-30 Thread Serguei Sokol
Hi Ralf, On 30/08/2019 16:04, Ralf Stubner wrote: On Fri, Aug 30, 2019 at 11:10 AM Serguei Sokol wrote: I am preparing a new package r2sundials for submission to cran. It depends on third part software (https://computing.llnl.gov/projects/sundials). Are you aware of the sundialr package?

Re: [R-pkg-devel] third part software dependency

2019-08-30 Thread Ralf Stubner
On Fri, Aug 30, 2019 at 11:10 AM Serguei Sokol wrote: > I am preparing a new package r2sundials for submission to cran. It > depends on third part software > (https://computing.llnl.gov/projects/sundials). Are you aware of the sundialr package? https://cran.r-project.org/package=sundialr > This

Re: [R-pkg-devel] General considerations about vignettes

2019-08-30 Thread Iñaki Ucar
On Fri, 30 Aug 2019 at 15:26, J C Nash wrote: > > I'm seeking some general advice about including vignettes in my packages, > which are largely for nonlinear estimation and function minimization > (optimization). > This means that my packages offer alternatives to many other tools, and the >

Re: [R-pkg-devel] third part software dependency

2019-08-30 Thread Dirk Eddelbuettel
On 30 August 2019 at 07:24, Dirk Eddelbuettel wrote: | | On 30 August 2019 at 11:10, Serguei Sokol wrote: | | I am preparing a new package r2sundials for submission to cran. It | | depends on third part software | | (https://computing.llnl.gov/projects/sundials). This will be my first | |

[R-pkg-devel] General considerations about vignettes

2019-08-30 Thread J C Nash
I'm seeking some general advice about including vignettes in my packages, which are largely for nonlinear estimation and function minimization (optimization). This means that my packages offer alternatives to many other tools, and the user then has the chore of deciding which is appropriate. Bad