Not very stable yet. Assume that the Rd file has no examples section yet. Simple add examples at the end
1 2 3 4 5 6 | add.example.to.Rd(ex, package,
package.path = path.package(package),
fun.name = ex$fun.name,
example.source = ex$example.source,
remove.top.lines = 1, remove.bottom.lines = 1,
all.dont.run = TRUE)
|
ex |
a list with elements fun.name and example.source |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.