#======================
# Basic settings
#======================
# Disable GUI menues
options(menu.graphics=FALSE)
# Always use official cran mirror
options(repos = c(CRAN = "https://cran.rstudio.com"))
# Autocompletion for package names
utils::rc.settings(ipck=TRUE)
# Don't use scientific notation
options(scipen=10)
# Only print 1000 lines, to avoid crashing terminal
options(max.print = 1000)
# Default package locations
# Set this in the .Renviron file
#======================
# Attempt to color terminal or add RStudio features
#======================
# .First <- function() {
# if(interactive()){
# if(Sys.getenv("RSTUDIO") == 1){
# require("rstudioapi")
# }else if(Sys.getenv("TERM") == "xterm-256color"){
# require("colorout")
# }else if(Sys.getenv("TERM") == "xterm"){
# require("colorout")
# }
# }
# }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.