Nothing
#' @importFrom rstudioapi hasFun readRStudioPreference
#' @noRd
RStudioTabSize <- function(){
if(hasFun("readRStudioPreference")){
readRStudioPreference("num_spaces_for_tab", 2)
}else{
2
}
}
#' @importFrom rstudioapi hasFun getThemeInfo
#' @noRd
RStudioThemeInfo <- function(){
if(hasFun("getThemeInfo")){
getThemeInfo()
}else{
list(editor = "cobalt", dark = TRUE)
}
}
#' @importFrom rstudioapi hasFun getSourceEditorContext
#' @noRd
RStudioContext <- function(){
if(hasFun("getSourceEditorContext")){
getSourceEditorContext()
}else{
stop("This version of RStudio is too old!")
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.