Installing R Package varSelRF, or VSURF

Error Information: dependency 'randomForest' is not available for package 'VSURF'

Description of issue - I have library randomForest installed. But when I tried to install VSURF or varSelRF, it gives me the above error

Steps taken so far - change cran mirror, tried in Rstudio as well as R

System Information:

  • RStudio Edition: (Desktop or Server) Desktop
  • RStudio Version: 1.1.419
  • OS Version: Windows 7
  • R Version: 3.2.4

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

I have seen this error message to mean the CRAN repositories you are using do not have the randomForest package available. Try using a CRAN repository that supplies this package; e.g. options(repos = c(CRAN = "https://cran.rstudio.com")).

Are you able to install randomForest directly first?

Thank you for the suggestion. I did have randomForest installed earlier. Anyways, I think the problem has to do with the version of R and R studio. I removed both from my computer and re-installed the latest versions and the problem was gone.