r - Caret package failed to install -


i getting errors trying install caret package:

error: compilation failed package ‘ddalpha’ * removing ‘/home/rspark/r/x86_64-redhat-linux-gnu-library/3.3/ddalpha’ warning in install.packages :   installation of package ‘ddalpha’ had non-zero exit status error: dependency ‘ddalpha’ not available package ‘recipes’ * removing ‘/home/rspark/r/x86_64-redhat-linux-gnu-library/3.3/recipes’ warning in install.packages :   installation of package ‘recipes’ had non-zero exit status error: dependency ‘recipes’ not available package ‘caret’ * removing ‘/home/rspark/r/x86_64-redhat-linux-gnu-library/3.3/caret’ warning in install.packages :   installation of package ‘caret’ had non-zero exit status 

any ideas?

install.packages("ddalpha") 

it gives same error:

/usr/lib64/r/library/bh/include/boost/exception/exception.hpp:137: error: expected declaration before end of line make: *** [alphaprocedure.o] error 1 error: compilation failed package ‘ddalpha’ * removing ‘/home/rspark/r/x86_64-redhat-linux-gnu-library/3.3/ddalpha’ 

as roman indicated in comments, ddalpha , recipes dependencies aren't installed yet. can manually install them follows:

install.packages(c('ddalpha', 'recipes')) 

alternatively, can tell install.packages() command grab necessary packages during install process.

install.packages('caret', dependencies=true) 

or list them explicitly:

install.packages('caret', dependencies=c('ddalpha', 'recipes')) 

or, if use ide such rstudio, package manager that's included automatically handle these dependencies you.

if these suggestions don't solve problem, may try updating instance of r latest (3.4.1 write this). also, ddalpha dependent on rcpp package version 0.11.0 or greater, may update package.

update.packages('rcpp') 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -