R/util.R

Defines functions report_system_file load_html_files report_show

report_system_file <- function(file) {
  system.file("rmarkdown", paste0("skeleton/", file) , package = "ENRanalytics")
}

load_html_files <- function(path) {
  command <- paste0('cp ', paste0(path, "*.html"), ' ', "reports/")
  system(command)
}

report_show <- function(...) {
  file.path(...) %>% file.edit()
}
AMUFacultyOfEnglish/ENRanalytics documentation built on May 5, 2019, 11:36 a.m.