errorReprex
1.0.0
Ejemplo reproducible de un error de instalación de paquete R
El comando R CMD INSTALL errorReprex falla en la rama de error. Mensaje de error e información de sesión que se muestra a continuación. En la rama no_error no hay falla. La única diferencia entre las dos ramas es la presencia de import(emayili) en el archivo NAMESPACE en la rama de error.
Además, ninguna rama falla si la versión de paquete instalada de Emayili es <= 0.4.15
# [optional run on docker image]
docker run -it rocker/tidyverse bashgit clone https://github.com/adam-gruer/errorReprex.gitRscript -e ' install.packages("emayili") 'R CMD INSTALL errorReprex cd errorReprexgit checkout no_error cd ..R CMD INSTALL errorReprexRscript -e ' devtools::install_version("emayili", "0.4.15") * installing to library ‘/usr/local/lib/R/site-library’
* installing * source * package ‘errorReprex’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package ‘errorReprex’
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error : Can ' t convert <logical> to <character>.
Error: package or namespace load failed for ‘errorReprex’:
unable to load R code in package ‘errorReprex’
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/errorReprex’
R version 4.1.1 ( 2021 - 08 - 10 )
Platform : x86_64 - pc - linux - gnu ( 64 - bit )
Running under : Ubuntu 20.04.3 LTS
Matrix products : default
BLAS / LAPACK : / usr / lib / x86_64 - linux - gnu / openblas - pthread / libopenblasp - r0.3.8.so
locale :
[ 1 ] LC_CTYPE = en_US.UTF - 8 LC_NUMERIC = C
[ 3 ] LC_TIME = en_US.UTF - 8 LC_COLLATE = en_US.UTF - 8
[ 5 ] LC_MONETARY = en_US.UTF - 8 LC_MESSAGES = C
[ 7 ] LC_PAPER = en_US.UTF - 8 LC_NAME = C
[ 9 ] LC_ADDRESS = C LC_TELEPHONE = C
[ 11 ] LC_MEASUREMENT = en_US.UTF - 8 LC_IDENTIFICATION = C
attached base packages :
[ 1 ] stats graphics grDevices utils datasets methods base
loaded via a namespace ( and not attached ) :
[ 1 ] compiler_4.1.1