In order to be build
able, a repository item must have an
associated source file and code chunk.
repo_build(
name,
src = NULL,
recursive = T,
force = F,
env = parent.frame(),
built = list()
)
Name of an item in the repo.
Path to a source file containing the code block
associated with the resource. Not necessary if name
is
already in the repository and has an associated source item.
Build dependencies not already in the repo recursively (T by default).
Re-build dependencies recursively even if already in the repo (F by default).
Environment in which to run the code chunk associated with the item to build. Parent environment by default.
A list of items already built used for recursion (not meant to be passed directly).
Nothing, used for side effects.
Code chunks are defined as in the following example: ``` ## chunk "item 1" x <- code_to_make_x() rp$put(x, "item 1") ## ```
`item 1` must be associated to the source (`src` parameter of `put`) containing the chunk code.