exmpextr | R Documentation |
Extract an example from a unit test file.
exmpextr(test, testPath = NULL, examplePath = NULL)
test |
File name of the test file, source. |
testPath |
Path to test files. Defaults to "inst/tests". |
examplePath |
Path under which the example is stored. Defaults to "inst/examples". |
From test, an example is extracted and written to a file of the same name, but with removed "test-". The file is saved under examplePath. The special tag #-! can be used to hide code in the test which is enabled again in the example.
Wolfgang Mader, Wolfgang.Mader@fdm.uni-freiburg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.