#'
.onLoad <- function(libname, pkgname){
if(!interactive()){
return()
}
if(rstudioapi::versionInfo()$version < 1.3){
warning("You have an old version of Rstudio which may not completely support learnr tutorial.\nPlease update if possible")
} else {
packageStartupMessage("Available tutorials shold show up in the Tutorial tab.\nNormally this is in the top right pane next to the Environment and History tabs\nAlternatively, find available packages with\nlearnr::available_tutorials(package = \"Bio250\") \nand launch them with \nlearnr::run_tutorial(..., package = \"Bio250\")\nwhere ... is the name of the tutorial")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.