How to change the default plot directory

When I go to the plots window in Rstudio
Plots > Export > Save as image > ...
it by default takes me to the working directory.

Is there a way to set a default folder separately from the rwd as the new default for saving plots?

1 Like

If you use {ggplot2} you can either ggsave("your_fullpath_filename") for the last plotted ggplot or

# specify device when saving to a file with unknown extension
# (for example a server supplied temporary file)
file <- tempfile()
ggsave(file, device = "pdf")

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.