Where can I find the .Rprofile file in ubuntu 20.04.

presently my RStudio is with Microsof R Open.
I want to change the options(repos = c(CRAN = "[https://cloud.r-project.org/ ](https://cloud.r-project.org/)"))
in the .Rprofile file.

The problem is that I can't find that file in Ubuntu 20.04
Where is?

Not positive but try /etc/R

The great option here is to use the usethis package:


It will show the path, open the file itself is the Rstudio and warn you to "restart R for changes to take effect".


Yes, I found it with the usethis package

If the question is solved, would you mark the solution please.

This topic was automatically closed 7 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.