1
votes

When I tried to install the xgboost package I've got the following error

install.packages("xgboost")

Installing package into ‘C:/Users/praveen/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified)

Warning in install.packages : package ‘xgboost’ is not available (for R version 3.1.2)
1
I'm sorry. there is a small typo in my post..I just edited it..Praveen reddy Dandu
You need to update to the current R version, R 3.2.1. Else you need to build from source.Dirk Eddelbuettel
How can I update to current version ?Praveen reddy Dandu
Go to r-project.org and follow the instructionsRich Scriven
Just how you installed version 3.1.2. See the R FAQ for more.Dirk Eddelbuettel

1 Answers

4
votes

You could try to following code. I am using RRO 3.2.1 in Windows 7 with Rstudio 0.99.441 Copied from this link on kaggle

  install.packages("RCurl")
  install.packages("Rcpp")
  install.packages("xml2")
  install.packages("devtools")
  devtools::install_github('dmlc/xgboost',subdir='R-package')

  # load packages
  library(xgboost)

The older Rtools.exe doesn't work in the updated R version. Re-installing all the above did the trixk!