R/zzz.R

Defines functions .onAttach

#' 
.onAttach <- 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 = \"data.handling\") \nand launch them with \nlearnr::run_tutorial(..., package = \"data.handling\")\nwhere ... is the name of the tutorial")
    
  }
}
Bio302-UiB/data-handling documentation built on Dec. 6, 2020, 12:15 p.m.