我们已经在我当前的hadoop HDP 2.1.5中安装了R 3.1.1,并且我想添加更多额外的R包,我想知道当前安装的所有包是什么?
发布于 2016-06-09 20:21:45
# For checking the packages installed, use
> installed.packages()
> In_P <- installed.packages()[,1]
# For checking all the available packages, use
> available.packages()
> Av_P <- available.packages()[,1]
# Removing Installed packages from available packages list
> Un_P <- Av_P[!Av_P %in% In_P]
# For installing Packages which are not installed already
> install.packages(Un_P)发布于 2016-06-17 23:15:18
我不确定spldf pkg是什么,我希望它是sqldf的拼写错误
# to install all packages and its dependencies simple use the below code.
install.packages("Package_Name", dependencies= True). 看起来你在使用R-Hadoop。有时这些包在CRAN上是不可用的,您可以下载它们并将其安装到本地计算机上,然后传递路径。
install.packages("path_to_installed_package.tar.gz", repos=NULL, type="source")下面的链接可能会对您有所帮助。在Hadoop http://www.rdatamining.com/big-data/r-hadoop-setup-guide上运行R作业
下载https://github.com/RevolutionAnalytics/RHadoop/wiki的一些有用的包
https://stackoverflow.com/questions/37723455
复制相似问题