Learn R Programming

adapr (version 1.0.1)

create_markdown: Renders and Rmarkdown file

Description

Renders and Rmarkdown file

Usage

create_markdown(target.file = paste0(get("source_info")$file$file, "md"), target.dir = get("source_info")$markdown.dir, style = "html_document", description = "Markdown", si, overwrite = FALSE)

Arguments

target.file
Markdown file to create
target.dir
Directory to send target file
style
Markdown target style
description
Markdown description
si
source_info object for tracking
overwrite
overwrite existing R markdown?

Value

File information

Details

Uses rmarkdown library to access objects in the R script. Will track dependencies for objects used within Rmd file.

Examples

Run this code
## Not run: 
# source_info <- create_source_file_dir("adaprHome","tree_controller.R")
# #Create markdown file in markdown directory for tree_controller.R
# create_markdown()
# ## End(Not run) 


Run the code above in your browser using DataLab