Unable to download rcompanion onto Rstudio (Version 1.1.463)

Every time I try to download rcompanion, I get this error:

install.packages("rcompanion")
Installing package into ‘C:/Users/TEMP.ADMSU/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘DescTools’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rcompanion_2.3.25.zip'
Content type 'application/zip' length 530097 bytes (517 KB)
downloaded 517 KB

package ‘rcompanion’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\TEMP.ADMSU\AppData\Local\Temp\21\RtmpEXC3bi\downloaded_packages

package ‘rcompanion’ successfully unpacked and MD5 sums checked

It seems that it has been downloaded and installed.
Have tried loading the library?

library(rcompanion)

You are using R version 3.5.2

You need to update to 3.5.3. That's all. If you are in Windows use 'installr' package to easily update you R version.

1 Like

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

I tried that after I downloaded it and it said this :

library(rcompanion)
Error: package or namespace load failed for ‘rcompanion’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘DescTools’
In addition: Warning message:
package ‘rcompanion’ was built under R version 3.5.3

My friend, you should install 'DescTools'. R is asking you for that.

install.packages('DescTools', dependencies = TRUE)

I tried that also. Yet, when I try to install it, R shows me this

install.packages('DescTools', dependencies = TRUE)
Installing package into ‘C:/Users/TEMP.ADMSU/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘DescTools’ is not available (for R version 3.5.2)

Actually, DescTools requires R >= 3.6 so it would be better if you update to the latest version 3.6.3

1 Like