I use R Studio on a Windows Computer. I have a problem with saving R scripts as an R file. I tried to click on "save as" and then give the file a name ending on .R, but it doesn't save the file. I then find a file with this name on my computer, but it is empty (0KB) and shows nothing when I open it. The whole code is gone.
How can I save an R script properly? What could be the problem? Thanks a lot!