Unable to save R script as an R file

altfi_SU picture altfi_SU · Mar 19, 2018 · Viewed 15.2k times · Source

When trying to save a script as an R file, I am not able to. The save as window opens, but the 'save as type' bar below the 'file name' bar is blocked/greyed-out. I am, however, able to save the script as an unreadable file. When I open it again to continue working on it, it cannot run. I then have to copy paste it to a new script to continue working on it and running the commands. I cannot seem to find many questions on the internet relating to this problem except this one: https://support.rstudio.com/hc/en-us/community/posts/219163988-Can-not-save-new-R-script-save-as-bar-grayed-out.

I have tried save() which does not work. I have also uninstalled R and installed the latest version of R, this does not help either. Would anyone know how to fix this problem so that I can save it as an R file?

EDITED:

I am using RStudio version 3.4.4. on the Windows 10 Home edition. Processor: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz. RAM: 8.00 GB. System type: 64-bit Operating System, x64-based processor.

Many thanks

Answer

GBerg picture GBerg · Sep 5, 2018

Windows 10 now prevents Rstudio to save a new document. Give Rstudio permission, restart it and than it worked for me.