errorReprex
1.0.0
Exemple reproductible d'une erreur d'installation du package R
La commande R CMD INSTALL errorReprex échoue dans la branche d'erreur. Message d'erreur et informations de session affichées ci-dessous. Dans la branche no_error , il n'y a pas d'échec. La seule différence entre les deux branches est la présence d' import(emayili) dans le fichier NAMESPACE dans la branche d'erreur.
Aucune des deux branches échoue également si la version du package installé d'Emayili est <= 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