R/tutor_show.R

Defines functions tutor_show

Documented in tutor_show

#' Show the tutorials currently available for the dayoff package
#'
#' @examples
#' tutor_show()
#'
#'
#' @export

tutor_show <- function(){
  dayoff.path <- system.file(package = "dayoff")
  tutor.path <- paste0(dayoff.path,"/tutorials")
  print(paste("Files in:", tutor.path))
  print("RMarkdown (.Rmd) files:")
  print(data.frame(file = list.files(tutor.path,pattern = "[R][m][d]$")))

   cat("\n R script (.R) files:")
  print(data.frame(file  = list.files(tutor.path,pattern = "[R]$")))
}
brouwern/dayoff documentation built on Nov. 4, 2019, 8:15 a.m.