klmr / box

Write reusable, composable and modular R code
https://klmr.me/box/
MIT License
829 stars 47 forks source link

installation fails under R version 3.6.0: object '.S3method' not found #340

Closed tyner closed 9 months ago

tyner commented 9 months ago

Error description

When trying to install box (using install.packages), it gives:

* installing *source* package ‘box’ ...
** package ‘box’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG   -I/usr/local/include  -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c exports.c -o exports.o
gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG   -I/usr/local/include  -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c lookup.c -o lookup.o
gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG   -I/usr/local/include  -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c unlock_env.c -o unlock_env.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -Wl,-z,relro -o box.so exports.o lookup.o unlock_env.o -L/usr/lib64/R/lib -lR
installing to /home/tyner/R/x86_64-redhat-linux-gnu-library/3.6/00LOCK-box/00new/box/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Error in get(name, envir = ns, inherits = FALSE) : 
  object '.S3method' not found
Error: unable to load R code in package ‘box’
Execution halted
ERROR: lazy loading failed for package ‘box’

R version

platform       x86_64-redhat-linux-gnu     
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          6.0                         
year           2019                        
month          04                          
day            26                          
svn rev        76424                       
language       R                           
version.string R version 3.6.0 (2019-04-26)
nickname       Planting of a Tree

‘box’ version

1.1.2

klmr commented 9 months ago

Thanks, that’s indeed a bug. It’s already fixed in the current development version, which can be installed via

install.packages('box', repos = 'https://klmr.r-universe.dev')

See #335.

tyner commented 9 months ago

Thanks, and apologies for not checking the closed issues list first.