-
Notifications
You must be signed in to change notification settings - Fork 3
Internals
Neal Fultz edited this page Apr 6, 2018
·
1 revision
In the default R file (hello.R), there are three helper functions:
-
template_textThis extracts the "body code" from a template function. The body text begins with
{{{and ends with}}}. It will also attempt to deindent it. It is meant to be used in a the knitrcode=option. -
template_default_args_textThis generates a "default argument code" chunk from a template. All arguments should provide a default value. It is meant to be used in a the knitr
code=option. -
diagnose_designThis wraps the
DeclareDesign::diagnose_designfunction in a very simple knitr memoization. It will save a filechunk-label.RDScontaining the simulations and diagnosands, so be sure to set the chunk label.