Skip to content
Prev 32987 / 63424 Next

.Rhistory created with wrong permissions (PR#13752)

Prof Brian Ripley wrote:
OK, undocumented feature of a library R links to.
Thanks for explaining.
Woah! No need to get snappy or pedantic. There's no documentation one 
way or the other, so "wrong" has to be relative to standard procedure.
There's no documentation saying R doesn't "rm -rf /" on full moons, but 
one still expects that it doesn't.

Most programs create files 0666 modified by umask, except if there's a 
good reason to restrict things.
0666 is also what fopen does when creating a file.
Furthermore .RData is created 0666, and I didn't think a user's history 
was more sensitive than his data, so I thought .Rhistory should be 0666 
as well. Paul's answer about passwords clears that up.

OK, I should have written "unusual permissions".
And I realize now that I should have posted to r-devel instead of 
submitting a bug. Sorry for the noise, I'm new to R.


Regards,
Nicolas Thierry-Mieg
<snip>