set_java_tmp_dir {xlsx} | R Documentation |
Set Java Temp Directory
Description
Java sets the java temp directory to '/tmp' by default. However, this is usually not desirable in R. As a result, this function allows changing that behavior. Further, this function is fired on package load to ensure all temp files are written to the R temp directory.
Usage
set_java_tmp_dir(tmp_dir = tempdir())
get_java_tmp_dir()
Arguments
tmp_dir |
optional. The new temp directory. Defaults to the R temp directory |
Details
On package load, we use 'getOption("xlsx.tempdir", tempdir())' for the default value, in case you want to have this value set by an option.
Value
The previous java temp directory (prior to any changes).
[Package xlsx version 0.6.5 Index]