Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-21 Thread Laurent Gautier
Thanks to all that looked at it and tried to answer. I am reporting here what I found in the end, in the hope it helps someone with a similar issue solve it quicker than I solved the one I had: Having int R_NaInt; rather than extern int R_NaInt; in the header / C definitions of the cffi

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-16 Thread Martin Maechler
> Laurent Gautier > on Sun, 15 Sep 2019 15:01:09 -0400 writes: > In case a search engine leads someone with the same issue > here, I am documenting the point I reached: > I can reproduce the issue with a small example when > forcing R to not load any package at

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-15 Thread Laurent Gautier
In case a search engine leads someone with the same issue here, I am documenting the point I reached: I can reproduce the issue with a small example when forcing R to not load any package at startup time (using an Renviron file): ``` package <- "utils" lib.loc <- "" ns <- loadNamespace(package,

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
R_HOME is not the issue, and I believe that R_LIBS is not involved with packages such as "datasets", "utils", etc... I suspect that the issue is around dynamic loading of C libraries, as depending on the way the R shared library is called the issue is absent or present, but the error reporting

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread William Dunlap via R-devel
Also, check the settings of R_HOME and/or R_LIBS. Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Sep 8, 2019 at 9:58 AM William Dunlap wrote: > Look at section 6.1 of the R Installation and Admin manual. > > 6.1 Default packages > > The set of packages loaded on startup is by default > >

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
Hi, Thanks, but I am unsure this helps. The point I am making is that an R error (about a missing value where a boolean would be expected), originating from the package methods, is not informative. This is indicating that a core R function involved in the loading of an R packages may receive

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread William Dunlap via R-devel
Look at section 6.1 of the R Installation and Admin manual. 6.1 Default packages The set of packages loaded on startup is by default > getOption("defaultPackages") [1] "datasets" "utils" "grDevices" "graphics" "stats" "methods" (plus, of course, *base*) and this can be changed by

[Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
Hi, When starting an embedded R I encounter the following issue under certain conditions: ``` Error: package or namespace load failed for ‘utils’ in if (.identC(class1, class2) || .identC(class2, "ANY")) TRUE else {: missing value where TRUE/FALSE needed ``` (more such errors for grDevices,