Skip to content
Prev 318236 / 398503 Next

Issues with TMPDIR/TEMP/TMP? Failure of R CMD check under Windows 7

On 13-02-24 4:00 PM, Ulrike Gr?mping wrote:
With the default install, there are no executables in C:\Rtools.  They 
are normally in C:\Rtools\bin and C:\Rtools\gcc-4.6.3\bin.  But this 
probably isn't causing the problem.  It sounds as though you've set the 
temporary directory to something that doesn't exist, or somewhere you're 
not allowed to write.

Can you still start R?  If so, what does tempdir() show?  Mine shows

[1] "C:\\temp\\RtmpGeoCGq"

The random bit at the end would be different for each session.  The part 
before needs to be a path in which you have write permission.
You should start R from the same window, using just "R" or "Rgui" to 
make sure it sees the same environment.

Duncan Murdoch