HenrikBengtsson / Wishlist-for-R

Features and tweaks to R that I and others would love to see - feel free to add yours!
https://github.com/HenrikBengtsson/Wishlist-for-R/issues
GNU Lesser General Public License v3.0
133 stars 4 forks source link

Have a global option to change the temporary directory #132

Open privefl opened 2 years ago

privefl commented 2 years ago
options(tmpdir = ".")
tmpfile()
# ./fileXXXXXXXX
nfultz commented 2 years ago

There's an environment variable for this, I've had to use it to install packages on red hat when the default temp location did not have execute privileges. I think it has to be an (exported) environment variable so that subprocesses can also see it.

privefl commented 2 years ago

Yes, I know, but this means you have to start new R subprocesses, which is less straightforward than just setting a global option.