powered by
Creates an Rmarkdown file in specified directory
createMarkdown(target.file = paste0(getSourceInfo()$file$file, "md"), target.dir = getSourceInfo()$markdown.dir, style = "html_document", description = "Markdown", si, overwrite = FALSE)
Markdown file to create
Directory to send target file
Markdown target style
Markdown description
source_info object for tracking
overwrite existing R markdown?
File information
Uses rmarkdown library to access objects in the R script. Will track dependencies for objects used within Rmd file.
# NOT RUN { source_info <- create_source_file_dir("adaprHome","tree_controller.R") #Create markdown file in markdown directory for tree_controller.R createMarkdown() # } # NOT RUN { # }
Run the code above in your browser using DataLab