Skip to contents

To use this in your package, re-declare source_pef() in your package with your package name.

Usage

source_pef(package, ...)

Arguments

package

Name of the package to in which to search

...

Additional paths appended to the package path by path().

Warning

Can only be called if all objects used in sourced files are already loaded. This is not a collation issue, but similar. source() parses at load time, so objects must be available at call time. Usually this will mean that it's best to place source_pef() at the end of a source file to which it pertains (say, the examples). If it uses objects from other files, manual collation instructions via #' @include foo.R may be neeeded, but that will quickly make the package unwieldy.

See also

Other example helpers: use_ex_file()