add.example.to.Rd: Adds examples to an Rd file

Description Usage Arguments

Description

Not very stable yet. Assume that the Rd file has no examples section yet. Simple add examples at the end

Usage

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)

Arguments

ex

a list with elements fun.name and example.source


skranz/ExampleDoc documentation built on May 30, 2019, 1:08 a.m.