非CRAN源包的兼容性

时间:2016-05-24 15:16:59

标签: r packages cran

我写了一个内部R包并将其保存为压缩源包。如果用户具有构建包的最新版本R version 3.3.0 (2016-05-03),则运行正常。但如果他们尚未更新,则不会安装:

> list.files(pattern="tar")
[1] "rgridclus_0.2.0.tar.gz"
> install.packages("rgridclus", type="source")
Installing package into ‘C:/Users/plafortune/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning message:
package ‘rgridclus’ is not available (for R version 3.2.4 Revised)

CRAN软件包具有向后兼容性过程,允许在旧R版本上安装和使用较新的软件包版本并发出警告:

> library(psych)
Warning message:
package ‘psych’ was built under R version 3.2.5 

我会鼓励用户跟上最新的R安装,但是我可以在非曲面包中添加此功能吗?

0 个答案:

没有答案