我使用R
通过我的Python脚本rpy2
库,我需要一个包 ,是不是在河的默认安装如何安装呢?
install.packages("DirichletReg", repos="http://r-forge.r-project.org")
将无法正常工作。
Python是:
>>> install.packages("DirichletReg", repos="http://r-forge.r-project.org")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'install' is not defined
而从R:
> install.packages("DirichletReg", repos="http://r-forge.r-project.org")
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘DirichletReg’ is not available (for R version 2.14.1)