0

I've been looking at StackOverflow forums like this and this but I cannot find a problem.

What I'm having an issue with is that I cannot install the caret package because the dependencies cannot be installed. I even tried to run install.packages("caret", dependencies = T) and that failed. I have also tried install.packages("caret", dependencies = c("Depends", "Suggests")) and it failed on installing rPython dependencies.

There seems to be issues saying that there is a configuration script and that I need to manually configure it.

I tried installing car, lme4, and other dependencies manually but only ggplot2 was able to be installed correctly. I have no idea what else to do, below is my session Info. Please help!

R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] codetools_0.2-14

loaded via a namespace (and not attached):
[1] tools_3.2.2      data.table_1.9.6 chron_2.3-47   
Community
  • 1
  • 1
Minh
  • 2,180
  • 5
  • 23
  • 50
  • Better to report what is the error with `install.packages("rPython", dep = TRUE)`. –  Nov 06 '15 at 03:55
  • I just get an error saying `package ‘rPython’ is not available (for R version 3.2.2)` – Minh Nov 06 '15 at 04:26
  • Yes, it seems this package is not available for Windows: https://cran.r-project.org/web/packages/rPython/index.html –  Nov 06 '15 at 04:27
  • So am I screwed with `caret` then? – Minh Nov 06 '15 at 04:35
  • I have `caret` installed without `rPython` on my computer. But I guess `install.packages("caret", dependencies = T)` and `install.packages("caret", dependencies = c("Depends", "Suggests"))` failed in a different way, as `rPython` is a *suggested* package. What error do you get with `install.packages("caret", dependencies = T)`? –  Nov 06 '15 at 04:39
  • @Minh Mai http://stackoverflow.com/questions/25721884/how-should-i-deal-with-package-xxx-is-not-available-for-r-version-x-y-z-wa goes over various strategies to overcome (or not) this. Not specific to caret but R generally. – Chris Nov 06 '15 at 05:31
  • @Pascal when installing with `dependecies = T`, all of the packages have a zero exit status and failed to install. – Minh Nov 06 '15 at 15:27
  • Issues with Windows CRAN mirrors have been reported yesterday. Maybe try different mirrors. –  Nov 06 '15 at 23:42

1 Answers1

0

did you try downloading the packages manually from CRAN and installing them manually from Rstudio? Some of the packages require rebooting the Rstudio after package installation or after package inclusion in the Rscript. That worked for me..

also, try installing different versions of the packages until one of them works for your case..that's what I did in the case of "ggvis package

nick
  • 1,090
  • 1
  • 11
  • 24