Rtools is not being detected from RStudio

前端 未结 3 630
遥遥无期
遥遥无期 2020-11-28 07:47

I am using latest R, RStudio and Rtools.

-- I have updated the environment variables. Now I can call gcc, or R from command line.

While I was trying to publi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 08:27

    Note that there are new potential kinds of problems (from R 3.3 onwards), since R (not RStudio, but R) adds a BINPREF variable and modifies the Path variable by default, see the Renviron.site file for the latter, on Windows typically e.g. under C:\Program Files\R\R-3.4.3\etc:

    PATH="C:\Rtools\bin;${PATH}" 
    

    This might easily conflict for people with a custom path and/or multiple versions of Rtools installed, so I have commented this out with a #.

    For the BINPREF problem, see the Makeconf file, e.g. under C:\Program Files\R\R-3.4.3\etc\x64:

    BINPREF ?= c:/Rtools/mingw_64/bin/
    

    I have then modified this to c:/Rtools34/mingw_64/bin/, which is where I have installed my Rtools34.
    You can do the same for the Makeconf file under the 32-bit arch. sub-directory.

提交回复
热议问题