This question already has an answer here:
这个问题已经有了答案:
- How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning? 13 answers
- 我该如何处理“包装xxx”不可用(R版本x.y.z)“警告?”13个答案
When I am trying to import fportfolio lib in R Studio, it says that dependency ‘Rglpk’ is not available for package ‘fPortfolio’
. How to solve this?
当我尝试在R Studio中导入fportfolio lib时,它说依赖“Rglpk”不能用于包的fportfolio。如何解决呢?
Can't find the package in Packages Tab.
无法在package选项卡中找到包。
Need some guidance on this. Thanks
需要一些指导。谢谢
EDIT:
编辑:
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)
1 个解决方案
#1
0
I run R-Studio using Ubuntu 14.
我用Ubuntu 14运行R-Studio。
First, you have to install GLPK for Linux (r-cran-rglpk 0.6-0-1). Download it from here - https://launchpad.net/ubuntu/utopic/i386/r-cran-rglpk/0.6-0-1
首先,您必须为Linux安装GLPK (r-cran-rglpk 0.6-0-1)。从这里下载- https://launchpad.net/ubuntu/ic/i386/r -cran-rglpk/0.6-0-1。
It may ask you update R. I've got it here - https://launchpad.net/ubuntu/utopic/i386/r-base-core/3.1.1-1
它可能会问你更新r,我已经有了,https://launchpad.net/ubuntu/ic/i386/r -base-core/3.1.1-1。
After it, you can run install.packages('fPortfolio')
在它之后,您可以运行install.packages('fPortfolio')
#1
0
I run R-Studio using Ubuntu 14.
我用Ubuntu 14运行R-Studio。
First, you have to install GLPK for Linux (r-cran-rglpk 0.6-0-1). Download it from here - https://launchpad.net/ubuntu/utopic/i386/r-cran-rglpk/0.6-0-1
首先,您必须为Linux安装GLPK (r-cran-rglpk 0.6-0-1)。从这里下载- https://launchpad.net/ubuntu/ic/i386/r -cran-rglpk/0.6-0-1。
It may ask you update R. I've got it here - https://launchpad.net/ubuntu/utopic/i386/r-base-core/3.1.1-1
它可能会问你更新r,我已经有了,https://launchpad.net/ubuntu/ic/i386/r -base-core/3.1.1-1。
After it, you can run install.packages('fPortfolio')
在它之后,您可以运行install.packages('fPortfolio')