R软件包与3.5.3不兼容

时间:2019-06-14 20:55:54

标签: r package

我正在尝试安装计算机上制作的软件包,但是出现问题。安装似乎可以正常工作,但我收到警告:

  

install.packages中的警告:   软件包“ abcmlr”不可用(对于R版本3.5.3)

这自然会在调用library

时引发错误
  

库(abcmlr)中的错误:'abcmlr'尚未安装的有效软件包

使用.libPaths()返回"C:/Users/amlut/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.3/library"。所以我想这就是library()给我一个错误的原因。

为什么在3.5.3版中无法安装我的软件包(此问题是否需要有关我的软件包的其他信息)?是否可以使我的软件包适用于3.5.3?要实现此目标需要采取什么步骤?

谢谢。

编辑:这是我制作的一个软件包,我正在使用devtools :: install

说明:

Package: abcmlr
Type: Package
Title: Analysis of Bone Counts by Maximum Likelihood
Version: 0.1.0
Author: 
Maintainer: 
Description: See Rogers ABCML for details
License:  
Encoding: UTF-8
LazyData: true
NeedsCompilation: no
Packaged: 2019-06-14 21:17:42 UTC; amlut
Built: R 3.5.3; ; 2019-06-14 21:17:43 UTC; windows

devtools::install的输出:

devtools::install("C:/Users/amlut/Documents/R/win-library/3.5/abcmlr")
WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in C:/Rtools has been deleted.

Please download and install Rtools 3.5 from http://cran.r-project.org/bin/windows/Rtools/.
√  checking for file 'C:\Users\amlut\Documents\R\win-library\3.5\abcmlr/DESCRIPTION' ...
-  preparing 'abcmlr':
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
   Removed empty directory 'abcmlr/man'
-  building 'abcmlr_0.1.0.tar.gz'

Running "C:/PROGRA~1/R/R-35~1.3/bin/x64/Rcmd.exe" INSTALL "C:\Users\amlut\AppData\Local\Temp\RtmpGySaDj/abcmlr_0.1.0.tar.gz" --install-tests 
* installing to library 'C:/Users/amlut/Documents/R/win-library/3.5'
* installing *source* package 'abcmlr' ...
** R
** byte-compile and prepare package for lazy loading
No man pages found in package ** help
 'abcmlr' 
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (abcmlr)
In R CMD INSTALL

library(abcmlr)

0 个答案:

没有答案