render_one: Render a single .Rmd file, and output to location

render_one(CodeFileId, SrcPath, HtmlPath, stamp = T)

Arguments

CodeFileId

file prefix with Scotty canon name, e.g. 'A01'

SrcPath

filepath where '.Rmd' files exist

stamp

default=True, will fix date-time to file name.

HtmPath

filepath to render to

Examples

Scotty::render_one('A01', 'CodeFilesPath', paste0('ReportFilesPath'))
#> Error in if (grepl(.shell_chars_regex, basename(input))) { input_no_shell_chars <- intermediates_loc(file_name_without_shell_chars(basename(input))) if (file.exists(input_no_shell_chars)) { stop("The name of the input file cannot contain the special shell ", "characters: ", .shell_chars_regex, " (attempted to copy to a ", "version without those characters '", input_no_shell_chars, "' ", "however that file already exists)", call. = FALSE) } file.copy(input, input_no_shell_chars, overwrite = TRUE) intermediates <- c(intermediates, input_no_shell_chars) input <- input_no_shell_chars if (is.null(intermediates_dir)) { intermediates_dir <- dirname(normalize_path(input_no_shell_chars)) if (same_path(intermediates_dir, dirname(original_input))) intermediates_dir <- NULL }}: argument is of length zero