We run tests where the package directory lacks write permissions, but tempdir() is fine. Copying to tempdir() while maintaining the original permissions partially defeats the purpose.
This is a broader problem that mainly appears to affects us (I don't know of any CRAN policy about assuming write permissions in the test directory), but the fix here is simple enough that I'm offering this PR.
Feel free to reject if you'd rather not worry about this and we'll just keep a patch.
We run tests where the package directory lacks write permissions, but
tempdir()
is fine. Copying totempdir()
while maintaining the original permissions partially defeats the purpose.This is a broader problem that mainly appears to affects us (I don't know of any CRAN policy about assuming write permissions in the test directory), but the fix here is simple enough that I'm offering this PR.
Feel free to reject if you'd rather not worry about this and we'll just keep a patch.