[R] write.csv permissions

R. Michael Weylandt michael.weylandt at gmail.com
Sun May 27 20:15:07 CEST 2012


Take a look at ?Sys.chmod -- I haven't used it myself, but it does
seem to be what your looking for and, in particular, the default
("777") seems to be what you want.

Michael

On Sun, May 27, 2012 at 10:36 AM, arun <smartpink111 at yahoo.com> wrote:
> Dear R help,
>
> I have a doubt regarding the write.csv function.  When I save a file (write.csv(res1,"res1.csv")), it is saving with the read-only permission.  I tried to change the permission as a root user with chmod u+x.  Though, it says that "-rwxr--r--  1 root root     164 2012-05-27 10:18 res1.csv", when I open the file it is still read-only.  Is there any way to save the file with no restrictions on permission?  I use the R  console as a root user (sudo R).
>
> Thanking you,
> A.K.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list