package ‘extrTrees’ is not available (for R version 3.5.1)

I am trying to download package "extraTrees" but I am getting this error message and the downloading is failed

Warning message:
package ‘extrTrees’ is not available (for R version 3.5.1)

In my personal experience, this error message is most often associated with typos.

Note your error message says "extrTrees", there should be an a between the r and the T.

You are right there was a typo but when I tried with the correct spelling I got the same error.

Are you sure that is the correct spelling? this command works normally on R 3.5.2 (RStudio Cloud)

install.packages("extraTrees")

1 Like

100% sure I even copied your line and re executed the command.

Have you checked that RStudio has internet access? is your internet connection behind a proxy server or firewall? that is usually the case when you are at work or school.

Unfortunately it is not the case; I am at home and the internet connection is perfect.

Try specifying the repository, and post the exact error message that you are getting.

install.packages("extraTrees", repos='http://cran.rstudio.com/')

Well this time the message was different:, here it is:

Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  'wget' call had nonzero exit status
Installing package into ‘C:/Users/Manar/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/src/contrib:
  'wget' call had nonzero exit status
Warning in install.packages :
  package ‘extraTrees’ is not available (for R version 3.5.3)
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.5:
  'wget' call had nonzero exit status
> library(extraTrees)
Error in library(extraTrees) : there is no package called ‘extraTrees’

This really looks like a connectivity issue, are you completely sure there there is no firewall or antivirus blocking internet access for RStudio?

Yes I am sure that there is not.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.