Every time when I install package this warning occurs: WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
I have been using R-Studio since 4 months and I did not come across this warning before. Despite getting this warning every time my installation succeeds.
From here: missing Rtools, should I be worried?
This means that if you are going to install packages that need compilation, you also have to install Rtools in your system.
I would like to translate the revolution measure fromhttps://blog.csdn.net/weixin_42098685/article/details/105864543 .
First step: Download and install the right Rtools for your R. Second step:
Tell the Rstudio where the Rtools is installed. Use this command (the sentence between the ##):
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"',con="~/.Renviron")
And it should Run as administrator.
Finally: Type the sentence between ## to examine whether we have succeed:
Sys.which("make")
if you see a path rather than blank it means it had succeed. Like this
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.