Мне нужно установить этот список пакетов:
Я нашел здесь этот код:
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)})”
Знаете ли вы, что означает «непризнанный ответ»? Не могли бы вы помочь мне найти способ установки пакетов в один go?