errorReprex
1.0.0
R軟件包安裝錯誤的可重現示例
命令R CMD INSTALL errorReprex在錯誤分支中失敗。錯誤消息和會話信息下面顯示。在no_error分支中,沒有故障。兩個分支之間的唯一區別是錯誤分支中的NAMESPACE文件中的導入import(emayili) 。
同樣,如果Emayili的已安裝軟件包版本為<= 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