snapshot_prefs | R Documentation |
Save named snapshots of your RStudio preferences that you can apply later.
snapshot_prefs_save()
: Save your RStudio user preferences with a name that
you can later use to identify these particular settings.
snapshot_prefs_use()
: Apply a saved snapshot.
snapshot_prefs_list()
: List available snapshots.
snapshot_prefs_undo()
: Undo the last applied snapshot.
snapshot_prefs_save(
name,
path = NULL,
include = NULL,
exclude = NULL,
source = "user",
exclude_os_prefs = TRUE,
overwrite = FALSE,
preview = FALSE
)
snapshot_prefs_use(
name = NULL,
path = NULL,
exclude_os_prefs = TRUE,
verbose = FALSE,
preview = FALSE
)
snapshot_prefs_list(path = NULL, verbose = TRUE)
snapshot_prefs_undo(verbose = TRUE)
name |
The name of the snapshot to save or apply.
|
path |
A GitHub gist ID or local path where the snapshot should be
saved. To create a new public gist, set |
include |
Names of RStudio preferences to include. If provided, only these preferences are included. See prefs_rstudio for preference names. |
exclude |
Names of RStudio preferences to exclude from the snapshot. See prefs_rstudio for all of the preference names. |
source |
The source of the current preference value. Preferences are set at different levels, from lowest to highest precedence:
The default is |
exclude_os_prefs |
Excludes operating-system or machine-dependent system preferences from the snapshot or the snapshot restore. |
overwrite |
If the snapshot exists, should it be overwritten? |
preview |
When |
verbose |
Prints or suppress informative output |
if (interactive()) {
tmpfile <- tempfile(fileext = ".json")
snapshot_prefs_save("example", path = tmpfile)
snapshot_prefs_list(tmpfile)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.