Rcmdr and RcmdrMisc not working with me

IThese two packages were working very well, suddenly i got these errors:

library(Rcmdr)
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: carData
Loading required package: sandwich
Error: package or namespace load failed for ‘RcmdrMisc’:
.onLoad failed in loadNamespace() for 'checkmate', details:
call: library.dynam(lib, package, package.lib)
error: DLL ‘backports’ not found: maybe not installed for this architecture?
Error: package ‘RcmdrMisc’ could not be loaded
library(RcmdrMisc)
Error: package or namespace load failed for ‘RcmdrMisc’:
.onLoad failed in loadNamespace() for 'checkmate', details:
call: library.dynam(lib, package, package.lib)
error: DLL ‘backports’ not found: maybe not installed for this architecture?

You are missing this package dependency, you need to install it

install.packages("backports")

Yes, i already did that and also followed many suggestions that have been posted in similar issues on different platforms however the issue still not solved yet.

If you keep getting the same error message then you have not installed the package successfully. Please post the complete output message you get when you try to install it.

Thanks Andresrcs,

install.packages("Rcmdr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Win10/OneDrive - Faculty Of Science (Tanta University)/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/Rcmdr_2.7-1.zip'
Content type 'application/zip' length 4455596 bytes (4.2 MB)
downloaded 4.2 MB

package ‘Rcmdr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Win10\AppData\Local\Temp\RtmpADYfLz\downloaded_packages

install.packages("Rtools")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Win10/OneDrive - Faculty Of Science (Tanta University)/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘Rtools’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

I meant the output message you get when you try to install the missing backports package. Not the already installed Rcmdr package. Run this command and share the output you get.

install.packages("backports")

Also, RTools is not an R package so you can't install it that way, it is a separate software that you have to download and install in your system. You can download it from the link provided in the error message (you should pay a little more attention to the actual content of the message).

https://cran.rstudio.com/bin/windows/Rtools/

Thanks andresrcs and sorry im new in R.
I successfully downloaded Rtools as recommended.
Here is the output:
install.packages("backports")
Installing package into ‘C:/Users/Win10/OneDrive - Faculty Of Science (Tanta University)/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
backports 1.3.0 1.4.0 TRUE

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/backports_1.3.0.zip'
Content type 'application/zip' length 105005 bytes (102 KB)
downloaded 102 KB

package ‘backports’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot delete reparse point 'C:\Users\Win10\OneDrive - Faculty Of Science (Tanta University)\Documents\R\win-library\4.1/backports/libs/x64', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
cannot remove prior installation of package ‘backports’
Warning in install.packages :
cannot delete reparse point 'C:\Users\Win10\OneDrive - Faculty Of Science (Tanta University)\Documents\R\win-library\4.1/backports/libs/x64', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
restored ‘backports’

The downloaded binary packages are in
C:\Users\Win10\AppData\Local\Temp\Rtmp842Bag\downloaded_packages

library(backports)
Error: package or namespace load failed for ‘backports’ in library.dynam(lib, package, package.lib):
DLL ‘backports’ not found: maybe not installed for this architecture?

R has problems with cloud synced folders (OneDrive in your case) I recommend you to set your package library in a non synced folder.

You can change the default library folder by setting your R_LIBS_SITE environmental variable in a .Reviron or .Rprofile file. For example:

# In a .Renviron file you can set it by adding a line like this one with the desired location 
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library"

For a more detailed explanation, you can read this blog post

Thanks so much andresrcs. Now it worked and everything is alright.
Best regards,
Yahya

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.