I am simply writing a code in the script .R document and intermittently an error message pops up: "Save file invalid argument.". When I try to save the file it throws the same error. What could be the issue? One thing that I noticed, is that when I try to locate the .Rprofile file with the function: "file.path(getwd(), ".Rprofile")", R shows that it is in Documents folder, but there isn't such file there.