R: create a custom installer for windows

I am creating a custom R-installer following the instructions in "Installing and Administering R". I installed the latest version of Rtools212.exe and Inno Setup.

After a successful launch tar --no-same-owner -xf R-2.12.1.tar.gz

Then I ran make all recommendedfrom R_HOME\src\gnuwin32, and it works fine until it receives the following message:

building package 'base'

cannot create /tmp/R860644: directory nonexistent

mv: cannot stat '/tmp/R860644': No such file or directory

make[3]: ***[mkR] Error 1

make[2]: ***[all] Error 2

make[1]: ***[R] Error 1

make: ***[all] Error 2

After checking the instructions, I thought that this does not mean that the environment variable is TMPDIRnot set properly. So I tried two options:

  • create c:\tmpfolder
  • add TMPDIRto the Windows environment variable and set the value as c:\DDDD(existing folder). Then I checked the value TMPDIRin the R console by typing Sys.getenv("TMPDIR"), and this change was confirmed.

, , . : 1. make /tmp, ; 2. TMPDIR , make - , .

, , , , , .

- ? .

, Shu

+3
1

, , "set TMPDIR = c:/DDDD" , . , .

+1

Source: https://habr.com/ru/post/1788409/


All Articles