Unable to install any package

Hi All,

I am unable to install any package. Getting below error. install.packages("randomForest") gives below output. This is happening for all packages I am trying to install.


install.packages("randomForest")
Installing package into ‘\servername/Users//My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/randomForest_4.6-14.zip'
Content type 'application/zip' length 250094 bytes (244 KB)
downloaded 244 KB

package ‘randomForest’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\username\AppData\Local\Temp\Rtmpwpt0ML\downloaded_packages



R Studio desktop is of 2021.09.1+372



R.version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 6.2
year 2019
month 12
day 12
svn rev 77560
language R
version.string R version 3.6.2 (2019-12-12)
nickname Dark and Stormy Night



sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252

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

loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2


Can anyone advise how to resolve this.

You are not showing any error messages just normal installation messages. Can you please clarify what your problem actually is? Aren't you able to load the packages with library() after installation? If so, please post the error message you get.

2 Likes

It seems that your package was installed just fine. In that case, try library('package_name') to load your library and see if you run into any problem

1 Like

Thanks, I have just started with R a week back. When I installed R packages in another server, I have observed the output was bit different like below, so thought it was not installed properly.

  • installing source package 'iterators' ...
    ** package 'iterators' successfully unpacked and MD5 sums checked
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'iterators'
    finding HTML links ... done
    iapply html
    icount html
    idiv html
    iread.table html
    ireadLines html
    irnorm html
    isplit html
    iter html
    iterators-package html
    makeIwrapper html
    nextElem html
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded
    *** arch - i386
    *** arch - x64
  • DONE (iterators)
    In R CMD INSTALL
  • installing source package 'snow' ...
    ** package 'snow' successfully unpacked and MD5 sums checked
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'snow'
    finding HTML links ... done
    snow-cluster html
    snow-internal html
    snow-parallel html
    snow-rand html
    snow-startstop html
    snow-timing html
    ** building package indices
    ** testing if installed package can be loaded
    *** arch - i386
    *** arch - x64
  • DONE (snow)

The reason for the difference is that in your last example the package has been installed from source thus required compilation, whereas in your first example the package has been installed from a precompiled binary.

This topic was automatically closed 7 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.