我正在开发一个R软件包,该软件包将在github上提供,但是当我使用devtools :: install_github在另一台计算机上进行测试下载/安装时,我收到以下警告消息。该软件包似乎可以正常工作,但是如果人们在安装时未收到警告,则希望使用该软件包。是什么引起了这些警告,我可以修改我的软件包以避免它们吗?
另外,似乎它正在下载软件包的开发版本,而不仅仅是软件包本身(我怀疑我设置有误)。
以下是警告:
警告:Rtools是构建R软件包所必需的,但当前尚未安装。
在R CMD安装中 警告信息: 1:在untar2(tarfile,文件,列表,exdir)中: 跳过pax全局扩展头 2:在untar2(tarfile,文件,列表,exdir)中: 跳过pax全局扩展头文件
更新:重新安装Rtools修复了Rtools警告,但未修复untar2警告 这是软件包https://github.com/donaldtmcknight/microDecon
答案 0 :(得分:0)
@ yt1300:我无法重现您的警告。
devtools::install_github("donaldtmcknight/microDecon")
#> Downloading GitHub repo donaldtmcknight/microDecon@master
#>
checking for file ‘/tmp/RtmphWCjio/remotes2d475ebd1f6/donaldtmcknight-microDecon-78f3757/DESCRIPTION’ ...
✔ checking for file ‘/tmp/RtmphWCjio/remotes2d475ebd1f6/donaldtmcknight-microDecon-78f3757/DESCRIPTION’
#>
─ preparing ‘microDecon’:
#>
checking DESCRIPTION meta-information ...
✔ checking DESCRIPTION meta-information
#>
─ checking for LF line-endings in source and make files and shell scripts
#>
─ checking for empty or unneeded directories
#> ─ looking to see if a ‘data/datalist’ file should be added
#>
─ building ‘microDecon_1.0.0.tar.gz’
#>
#>
#> Installing package into '/home/rmagno/R/x86_64-pc-linux-gnu-library/3.5'
#> (as 'lib' is unspecified)
library(microDecon)
sessionInfo()
#> R version 3.5.1 (2018-07-02)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Arch Linux
#>
#> Matrix products: default
#> BLAS: /usr/lib/libblas.so.3.8.0
#> LAPACK: /usr/lib/liblapack.so.3.8.0
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_DK.utf8 LC_COLLATE=en_US.UTF-8
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [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
#>
#> other attached packages:
#> [1] microDecon_1.0.0
#>
#> loaded via a namespace (and not attached):
#> [1] Rcpp_1.0.0 knitr_1.20 magrittr_1.5
#> [4] usethis_1.4.0 devtools_2.0.1 pkgload_1.0.2
#> [7] R6_2.3.0 rlang_0.3.0.1 stringr_1.3.1
#> [10] tools_3.5.1 pkgbuild_1.0.2 sessioninfo_1.1.1
#> [13] cli_1.0.1 withr_2.1.2 remotes_2.0.2
#> [16] htmltools_0.3.6 yaml_2.2.0 assertthat_0.2.0
#> [19] rprojroot_1.3-2 digest_0.6.18 crayon_1.3.4
#> [22] processx_3.2.0 callr_3.0.0 fs_1.2.6
#> [25] base64enc_0.1-3 ps_1.2.1 curl_3.2
#> [28] testthat_2.0.1 glue_1.3.0 memoise_1.1.0
#> [31] evaluate_0.12 rmarkdown_1.10 stringi_1.2.4
#> [34] compiler_3.5.1 desc_1.2.0 backports_1.1.2
#> [37] prettyunits_1.0.2