| quickstart | R Documentation |
Interactively ask the user a series of questions to generate a file which can be weaved using rtfSweave. The questions include the file name, document orientation, margins, etc.
quickstart()
Assuming the named the skeleton file report.Rrtf, it
would look something like this:
{\rtf1
{\SweaveInput report-header.rtf}
<<information, engine=none>>=
This code chunk will be ignored since 'engine' is neither 'R' nor 'S'
@
<<build-function, eval=false, echo=false>>=
## You can use this function to "build" the RTF file
build <- function() {
Sweave("test.Rrtf",
RweaveRtf(),
SweaveSyntaxRtf,
prefix.string = "figures/fig")
}
@
}
This function returns nothing but generates the following files and directories:
A documentation + code “skeleton” file usually with file extension
Rrtf. This file includes a code chunk with a build
function that can be evaluated to weave the file.
A header file containing RTF boilerplate based on the answers to the prompts. It is “included” into the documentation + code file to reduce clutter in the main file.
A user-specified subdirectory defaulting to figures
which holds the figures. (This applies only if the subdirectory
does not already exist.)
Stephen Weigand <weigand.stephen@mayo.edu>
quickstart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.