Skip to content

Instantly share code, notes, and snippets.

@wjhopper
Created June 2, 2023 18:39
Show Gist options
  • Save wjhopper/b4bd72e619efebb2a09ef5e5f76edba9 to your computer and use it in GitHub Desktop.
Save wjhopper/b4bd72e619efebb2a09ef5e5f76edba9 to your computer and use it in GitHub Desktop.
library(rstudio.prefs)
use_rstudio_prefs(
save_workspace = "never", # General --> Basic --> Save Workspace
load_workspace = FALSE, # General --> Basic --> Restore .RData
restore_last_project = FALSE, # General --> Basic --> Restore most recent project
restore_source_documents = FALSE, # General --> Basic --> Restore previously open source documents
check_for_updates = FALSE, # General --> Basic --> Check for updates
color_preview = FALSE, # Code --> Display --> Enable preview of named colors
rmd_viewer_type = "pane", # Rmarkdown --> Basic --> Show output preview in:
rmd_chunk_output_inline = FALSE # Rmarkdown --> Basic --> Show output in-line
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment