If the code is
install.packages("DMwR")
That may be the version of the installation package. Change to
install.packages("DMwR2")
want a go. The same is true when importing
library("DMwR2")
Specific process of error correction:
At first, I thought that the version of rstudio was not new enough. After updating rstudio, I found that it still couldn’t; Download rtools again, or report an error
The installation code of dmwr is as follows
install.packages("DMwR")
Error display
Warning in install.packages :
package ‘DMwR’ 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
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing -packages
(in fact, there is another error when downloading rtools and updating rstudio, but there is no screenshot,
Rtools is required to build R packages, but is not currently installed
Then try to change the installed image, Download rtools and update rstudio, and the error message becomes the above one)
I found the dmwr2 package by chance. I tried it and downloaded it successfully.
It is recommended to try dmwr2 first. If not, you can update rstudio and install rtools
Read More:
- R Language: How to Solve featureplot function Error
- [Solved] R Language Error: Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)
- [Solved] R Language Error: Discrete value supplied to continuous scale
- How to Solve ruby rails Install Error [Windows]
- R language Use setwd() function Error [How to Solve]
- VScode: How to Solve golong plug-in install Error
- [Solved] R Language Error: duplicate ‘row.names’ are not allowed
- How to Solve elasticsearch and logstash Install Error
- [app] install and compile libimobililedevice, How to solve the error
- How to Solve elasticSearch8.1.2 Install Error in Win10
- How to Solve elk7.7.1 logstash Install Error
- How to Solve Brew install golangci-lint Error
- R Language Error: variable does not have limits defined by datadist
- How to Solve install dm.xmlsec.binding Error
- How to Solve jmeter Install Error (Three Common Errors)
- How to Solve Excel Error Log 0: Install Error
- R language learning problem solving error in output $nodeid: $operator is invalid for atomic vectors
- IDEA: How to Solve Springboot Project install Error
- [Solved] R Language Error: Error in file(out, “wt“) : cannot open the connection
- Implement base64_decode in GO language to solve the problem of illegal characters