Errors while setting up Rstudio and Rpackages

While setting up Rstudio for packages i get this error which reads:
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") :
cannot open file 'C:/Users/DELL/Documents/.Renviron': No such file or directory

so how can i solve this problem, Please suggest !!

Can you provide more detailed steps to reproduce your issue? What specific command are you executing when you get this error message? Is this the complete message or you are omitting something?

1 Like

I am a begginer and been trying to set up Rstudio with R 4.0.2.. during the course i have successfully installed and run rstudio but during final steps of setting using writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron") command the error keeps popping up..

I have already setup path and there was no error using Sys.which("make") command.

Are you runing that command as "Administrator"?

1 Like

yes !! i m running rstudio as administrator

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.