View source: R/extractRchunk.R
extractRchunk | R Documentation |
Collect code chunks from an .org file and put them into an .R file.
extractRchunk(
file,
newfile = NULL,
file.header = NULL,
file.start.SRC = NULL,
file.end.SRC = NULL,
rm.export.none = TRUE,
rm.noexport = TRUE,
index.chunk = TRUE,
overwrite = FALSE
)
file |
name of the file from which the R chunks should be extracted. |
newfile |
name of the R file be created. |
file.header |
string indicating headers. |
file.start.SRC |
string indicating the start of a code block. |
file.end.SRC |
string indicating the end of a code block. |
rm.export.none |
should chunks of code with |
rm.noexport |
should header with |
index.chunk |
should the code block be numbered in the .R file? |
overwrite |
Can the existing R file be overwritten? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.