R/rebuild.R

Defines functions rebuild

Documented in rebuild

#' To be documented
#'
#' @export
rebuild = function(fi){
  curPath = getwd()
  setwd(fi$path)
  cmd = paste0("knit2pdf(input = \"", fi$fName, "\")")
  cat(cmd)
  tryCatch(eval(parse(text = cmd)), finally = setwd(curPath))
}
jmcurran/s20xHelpR documentation built on Jan. 27, 2023, 4:43 p.m.