View source: R/install_rstudio_themes.R
install_rstudio_themes | R Documentation |
Adds a custom editor theme to RStudio, leveraging the package's internal dataset with custom RStudio themes. The function also allows to bulk-install themes.
install_rstudio_themes(theme, globally = FALSE)
theme |
name of the theme to install, can be a character vector with multiple themes. the shortcode "all" will install all themes in the dataset; similarly, "all_light" and "all_dark" will install all light or dark themes, respectively. |
globally |
boolean, default FALSE. should the themes be installed only for the current user (FALSE, default) or for all users (TRUE) |
The function wraps rstudioapi::addTheme
. It does not force
the installation, meaning that existing themes are not overwritten. Also, it
does not immediately apply the newly installed theme (see
rstudioapi::applyTheme
) for this). To see the newly installed
themes, navigate to "Tools"- "Global Options" - "Appearance".
none
rstudioapi:addTheme()
which this function wraps.
## Not run:
# install all dark themes
install_rstudio_themes(theme = "all_dark")
# install two specific themes from the list
install_rstudio_themes(theme = c("Ayu Light", "GitHub {rsthemes}"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.