Each package based on a dmdScheme can contain examples. This function is the interface to these examples.
In the package dmdScheme, no examples are included.
The function has two basic usages:
by using
make_example(schemeName = "NameOfTheScheme")all included examples are listedby using
make_example(name = "basic", schemeName = "NameOfTheScheme")it will create the example namedbasicin a subdirectory in the current working directory. An existing directory with the same name, will nod be overwritten!
Details
The examples have to be located in a directory called example_data.
The function is doing two things:
Copying the complete directory from the
example_datadirectory to the current working directoryrunning
knitr::purlon all./code/*.Rmdto extract the code into.Rscript files. If you want to include an RMarkdown files in the./codedirectory from thisa, use the.rmdextension (small letters).