【问题标题】:Rtools and untar2 warming message in R from devtools/github install来自 devtools/github 安装的 R 中的 Rtools 和 untar2 预热消息
【发布时间】:2019-07-17 06:37:04
【问题描述】:

我正在开发一个可以在 github 上使用的 R 包,但是当我使用 devtools::install_github 在另一台计算机上进行测试下载/安装时,我收到了以下警告消息。该软件包似乎可以正常工作,但如果人们在安装它时没有收到警告,我会更喜欢它。是什么导致了这些警告,我可以修改我的包以避免它们吗?

此外,它似乎正在下载包的开发版本,而不仅仅是包本身(我怀疑我的设置有误)。

以下是警告:

警告:构建 R 包需要 Rtools,但目前尚未安装。

在 R CMD 中安装 警告信息: 1:在 untar2(tarfile, files, list, exdir) 中: 跳过 pax 全局扩展标头 2:在 untar2(tarfile, files, list, exdir) 中: 跳过 pax 全局扩展标头

更新:重新安装 Rtools 修复了 Rtools 警告,但没有修复 untar2 警告 这是包裹https://github.com/donaldtmcknight/microDecon

【问题讨论】:

标签: r github


【解决方案1】:

@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

【讨论】:

  • 嗯。可能是我安装它的计算机上的某些配置错误,但我仍然很想知道到底发生了什么。感谢您尝试复制警告。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-01-13
  • 2020-11-24
  • 2021-08-03
  • 2016-12-29
  • 2017-10-10
相关资源
最近更新 更多