This question already has answers here:
How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning?
(18个回答)
6年前关闭。
当我尝试在R Studio中导入fportfolio lib时,它说
在“软件包”选项卡中找不到软件包。
需要一些指导。谢谢
编辑:
(18个回答)
6年前关闭。
当我尝试在R Studio中导入fportfolio lib时,它说
dependency ‘Rglpk’ is not available for package ‘fPortfolio’
。如何解决呢?在“软件包”选项卡中找不到软件包。
需要一些指导。谢谢
编辑:
Warning in install.packages :
package ‘Rglpk’ is not available (for R version 3.0.1)
Installing package into ‘/Users/cnnlakshmen_2000/Library/R/3.0/library’
(as ‘lib’ is unspecified)
package ‘Rglpk’ is available as a source package but not as a binary
Warning in install.packages :
package ‘Rglpk’ is not available (for R version 3.0.1)
最佳答案
我使用Ubuntu 14运行R-Studio。
首先,您必须为Linux安装GLPK(r-cran-rglpk 0.6-0-1)。从这里下载-https://launchpad.net/ubuntu/utopic/i386/r-cran-rglpk/0.6-0-1
它可能会问您更新R。我在这里找到它-https://launchpad.net/ubuntu/utopic/i386/r-base-core/3.1.1-1
之后,您可以运行install.packages('fPortfolio')
关于r - 依赖性‘Rglpk’对软件包‘fPortfolio’不可用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17381770/
10-12 17:11