R/zzz.R

Defines functions .onLoad

#' 
.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")
    
  }
}
richardjtelford/bio250 documentation built on Oct. 12, 2022, 2:16 a.m.