0

I installed Rtools following the official guide (installing as well as adding the .Renviron file with the PATH).

Rstudio, however, doesn't recognise the installation:

> devtools::find_rtools()

WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in C:/rtools40 has been deleted.

Rtools is installed and seems to work:

Screenshot, showing that Rtools has not been uninstalled

Set-up: Windows 10, RStudio 1.2.5042, R 4.0.0, RTools 4.0

wind_2801
  • 131
  • 10
  • 2
    Isn't this a question for RStudio support (or the maintainer of `devtools`)? – user2554330 May 09 '20 at 11:36
  • 1
    Did you use writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron") instead of writeLines('PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"', con = "~/.Renviron") ? – Mohanasundaram May 09 '20 at 12:04
  • Do other indicators from within R show Rtools working? For example, do you get the expected output from `Sys.which("make")`? Are you able to install a package from source, e.g. `install.packages("jsonlite", type = "source")`? (These are examples given on that installation guide you link). – duckmayr May 09 '20 at 12:33

0 Answers0