sessionInfo()
R version 3.5.1 (2018-07-02) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.3
library(parallel)
makeCluster(detectCores() - 1)
Output in R:
Fatal error: creating temporary file for '-e' failed
How can I solve this issue? Thank you!
touch foo.txt
under/tmp
,/home/youruser/
and/var/tmp
where R/Rscript keeps its scratch files. Check to see if your hard drive is full or if your hard drive is in read-only mode or other reason Rscript can't create a new temporary code file due to changed directory permissions.