安装存档包 [英] installing an archived package

查看:40
本文介绍了安装存档包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该软件包可在此网站上获得.http://cran.r-project.org/src/contrib/Archive/rlandscape/

The package is available on this website. http://cran.r-project.org/src/contrib/Archive/rlandscape/

当我使用时:

install.packages("rlandscape", 
  repos = "http://cran.r-project.org/src/contrib/Archive/rlandscape/",         
  type="source")

我收到以下错误:

包 'rlandscape' 不可用(对于 R 版本 3.1.2)

package 'rlandscape' is not available (for R version 3.1.2)

我也尝试过旧版本,但没有运气..

I have tried older versions too but no luck..

推荐答案

这是一个不再受支持的旧(存档)包.如果你真的需要它,你可以使用 R CMD INSTALL 安装它,但你也需要手动安装它的所有依赖项.

This is an old (archived) package that is no longer supported. If you really need it, you can install it using R CMD INSTALL but you need also to install all its dependencies manually.

安装你想要的包给了我以下内容:

Installing your desired package gave me the following:

>R CMD INSTALL ~/Downloads/rlandscape_1.0.tar.gz 
* installing to library ‘/Users/mohamedahmed/Rlibs’
ERROR: dependencies ‘spatstat’, ‘deldir’, ‘gWidgets’, ‘gWidgetsRGtk2’ are not available for package ‘rlandscape’
* removing ‘/Users/mohamedahmed/Rlibs/rlandscape’

我不确定 CRAN 上的所有依赖项是否仍然可用,但这似乎是一项具有挑战性的任务.

I am not sure all dependencies are still available on CRAN, but it seems to be challenging task.

这篇关于安装存档包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆