自动安装最有用的包
Automatically install most useful packages
我需要安装这个软件包列表:
我找到了here这个代码:
list.of.packages <- c("dplyr", "plyr", "data.table", "MissForest", "MissMDA",
"Outliers", "EVIR", "Features", "RRF", "FactorMiner", "CCP",
"ggplot2", "googkleVis", "Rcharts", "car", "randomforest",
"Rminer", "CoreLearn", "caret", "BigRF", "CBA",
"RankCluster", "forecat", "LTSA", "survival", "Basta",
"LSMean", "Comparison", "RegTest", "ACD", "BinomTools",
"DAIM", "ClustEval", "SigClust", "PROC", "TimeROC", "Rcpp",
"parallel", "xml", "httr", "rjson", "jasonlite", "shiny",
"Rmarkdown", "tm", "OpenNLP", "sqldf", "RODBC", "rmonogodb")
new.packages <- list.of.packages[!(list.of.packages
%in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages,function(x){library(x,character.only=TRUE)})
为此我得到了这样的回复:
There are binary versions available but the source versions are later:
binary source needs_compilation
bit 1.1-15.1 1.1-15.2 TRUE
foreach 1.4.7 1.4.8 FALSE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) lapply(list.of.packages,function(x){library(x,character.only=TRUE)})
Error in install.packages : Unrecognized response “lapply(list.of.packages,function(x){library(x,character.only=TRUE)})”
你知道'unrecognised response'是什么意思吗?你能帮我找到一种一次性安装软件包的方法吗?
install.packages
要求用户在 "There are binary versions available..." 中输入,并从输入缓冲区中读取下一行,即“lapply(list.of.packages,function(x) {图书馆(x,character.only=TRUE)})”
您 运行 来自终端或 Rstudio 的 R 吗?在后一种情况下,尝试 运行 一次一行,以便在下一行加载所有库之前决定是否升级包。
我需要安装这个软件包列表:
我找到了here这个代码:
list.of.packages <- c("dplyr", "plyr", "data.table", "MissForest", "MissMDA",
"Outliers", "EVIR", "Features", "RRF", "FactorMiner", "CCP",
"ggplot2", "googkleVis", "Rcharts", "car", "randomforest",
"Rminer", "CoreLearn", "caret", "BigRF", "CBA",
"RankCluster", "forecat", "LTSA", "survival", "Basta",
"LSMean", "Comparison", "RegTest", "ACD", "BinomTools",
"DAIM", "ClustEval", "SigClust", "PROC", "TimeROC", "Rcpp",
"parallel", "xml", "httr", "rjson", "jasonlite", "shiny",
"Rmarkdown", "tm", "OpenNLP", "sqldf", "RODBC", "rmonogodb")
new.packages <- list.of.packages[!(list.of.packages
%in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages,function(x){library(x,character.only=TRUE)})
为此我得到了这样的回复:
There are binary versions available but the source versions are later:
binary source needs_compilation
bit 1.1-15.1 1.1-15.2 TRUE
foreach 1.4.7 1.4.8 FALSE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) lapply(list.of.packages,function(x){library(x,character.only=TRUE)})
Error in install.packages : Unrecognized response “lapply(list.of.packages,function(x){library(x,character.only=TRUE)})”
你知道'unrecognised response'是什么意思吗?你能帮我找到一种一次性安装软件包的方法吗?
install.packages
要求用户在 "There are binary versions available..." 中输入,并从输入缓冲区中读取下一行,即“lapply(list.of.packages,function(x) {图书馆(x,character.only=TRUE)})”
您 运行 来自终端或 Rstudio 的 R 吗?在后一种情况下,尝试 运行 一次一行,以便在下一行加载所有库之前决定是否升级包。