When I try to install mlr
package, I get this error message
Package which is only available in source form, and may need compilation of C/C++/Fortran:
'mlr'
These will not be installed
Try this code.
install.packages('mlr', repo='http://cran.fiocruz.br/')
Use the same link as mentioned above by Koba. But when you will be asked a question like "Do you want to install from sources the packages which need compilation?" Type "n".
And then you can use the library.
This is most likely a problem with the cran mirror that you are using . You can try picking one of the mirrors from https://cran.r-project.org/mirrors.html and install the package from a specific repo .
Example :
install.packages('mlr', repo='http://cran.fiocruz.br/')
The full list of repos can be found at https://cran.r-project.org/mirrors.html . You can try picking a few repos to see which one works .
Your issue happened once to me, if I remember right, you need Rtools
as others have said. Notice, though, Rtools
is not a package, it's an official maintained package-building application.
You must download it from the release page: Building R for Windows .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.