Description Usage Arguments Details Value See Also Examples
For use in creating a data repo, indicate all the code chunks used to create a specific subset of data
1 | export_code(file, chunks, output_file, output_dir = "auto")
|
file |
The .Rmd file to parse |
chunks |
A character vector of the code chunk labels to keep |
output_file |
The filename to write to (no extension) |
output_dir |
The directory to write the file to (ending with trailing slash), Default: "auto" |
DETAILS
OUTPUT_DESCRIPTION
1 2 3 4 5 6 7 8 9 | ## Not run:
# In the puddingR default directory
export_code("analysis.Rmd", chunks = c("load_data", "find_average"), output_file = "average")
#' # If not in the puddingR default directory
export_code("analysis.Rmd", chunks = c("load_data", "find_average"),
output_file = "average", output_dir = "myFolder/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.