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 <smartpink...@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@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.

______________________________________________
R-help@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.

Reply via email to