changing default umask

When the file created through RStudio console, the permission is rw-rw-r-- but if the file is created in terminal the permission will be rw-r--r--. I tried changing the default umask value but adding the umask value 002 in .Rprofile file but the file permission is not reflecting when I create file through console.
How to change the default umask value so that the file permission will be 664?
(It should not be user specific)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.