You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If R_CleanTempDir() is called in any of the worker processes, it will remove R's temporary directory for all sessions using the same temporary directory. By default, all R sessions will share the same temporary directory which can cause removal of tempdir() for existing sessions.
One way to force independent temporary directories is to remove tempdir() before forking and call tempdir(TRUE) after forking which creates a new temporary directory.
Note that R_CleanTempDir is called as part fo the cleanup of any R process, so this can happen in any cases where R initiates a shutdown including SIGPIPE handler or explicit user exit.
The text was updated successfully, but these errors were encountered:
If
R_CleanTempDir()
is called in any of the worker processes, it will remove R's temporary directory for all sessions using the same temporary directory. By default, all R sessions will share the same temporary directory which can cause removal oftempdir()
for existing sessions.One way to force independent temporary directories is to remove
tempdir()
before forking and calltempdir(TRUE)
after forking which creates a new temporary directory.Note that
R_CleanTempDir
is called as part fo the cleanup of any R process, so this can happen in any cases where R initiates a shutdown includingSIGPIPE
handler or explicit user exit.The text was updated successfully, but these errors were encountered: