Last active
July 12, 2019 08:49
-
-
Save adomingues/17110f273701d00e5d0e076f9cdc91f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## set default repository | |
options(repos = "http://cran.rstudio.com") | |
## install packages if missing | |
suppressMessages(if (!require("devtools")) utils::install.packages("devtools")) | |
suppressMessages(if (!require("rdoc")) devtools::install_github("mdequeljoe/rdoc")) | |
suppressMessages(if (!require("prettycode")) utils::install.packages("prettycode")) | |
## prettify the docs | |
rdoc::use_rdoc() | |
prettycode::prettycode() | |
grDevices::pdf.options(useDingbats = FALSE) | |
# ========================================================================== | |
# radian settings | |
# ========================================================================== | |
options(radian.auto_indentation = FALSE) | |
options(radian.color_scheme = "monokai") | |
# auto match brackets and quotes | |
options(radian.auto_match = TRUE) | |
# auto indentation for new line and curly braces | |
options(radian.auto_indentation = TRUE) | |
options(radian.tab_size = 4) | |
# timeout in seconds to cancel completion if it takes too long | |
# set it to 0 to disable it | |
options(radian.completion_timeout = 0.05) | |
# insert new line between prompts | |
options(radian.insert_new_line = FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment