Problem running "Rcmdr" package, error no file 'xfun' found

Rcmdr was succefully installed and unpacked but when I go to packages and select it [or library(Rcmdr)] the program fails to load a file called 'xfun'. I can't find anything about it so I was wondering if the Rstudio Community could help me answer it. Thank you all for your time. Below is the code I tried:

install.packages("Rcmdr", dependencies=TRUE)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/socce/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 4455484 bytes (4.2 MB)
downloaded 4.2 MB

package ‘Rcmdr’ successfully unpacked and MD5 sums checked

Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: sandwich
Error: package or namespace load failed for ‘RcmdrMisc’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘xfun’
Error: package ‘RcmdrMisc’ could not be loaded

1 Like

Thank you for your help. I installed the package with a few errors but the function I needed to run is running now.

1 Like

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.