On 26 April 2017 at 16:39, Tomas Kalibera wrote: | I agree this should be solved in configuration of | systemd/tmpreaper/whatever tmp cleaner - the cleanup must be prevented
Yep. | in configuration files of these tools. Moving session directories under | /var/run (XDG_RUNTIME_DIR) does not seem like a good solution to me, | sooner or later someone might come with auto-cleaning that directory too. (These days it seems /run is used too. I seem to have a screenful of things in there.) | It might still be useful if R could sometimes detect when automated | cleanup happened and warn the user. Perhaps a simple way could be to | always create an empty file inside session directory, like | ".tmp_cleaner_trap". R would never touch this file, but check its | existence time-to-time. If it gets deleted, R would issue a warning and | ask the user to check tmp cleaner configuration. The idea is that this | file will be the oldest one in the session directory, so would get | cleaned up first. That's a very good third idea. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel