loadb: Load Branch

Description Usage Arguments Details Author(s) See Also Examples

View source: R/revisit.R

Description

Loads the specified branch into memory.

Usage

1
loadb(br)

Arguments

br

Filename, including path, of branch to be loaded.

Details

This function loads the specified branch into memory so that it can be edited, run, and/or saved. In the process, the following variables are set in rvenv, the environment initialized by rvinit.

VARIABLE DESCRIPTION EXAMPLE
rvenv$currb Current branch name, including path, if any "inst/examples/pima.0.R"
rvenv$currbasenm Same as rvenv$currb above but without branch id or extension "inst/examples/pima"
rvenv$currcode A character vector with one member for each line of code "# RV history start" ...
rvenv$desc Description from file (line before "# RV history end") "# original code"
rvenv$pc Program counter, starting at 1 1
rvenv$smalleffect Value used for significance testing (as in t.test.rv) 0.05

The 0 branch (e.g., pima.0.R) is created with the makebranch0 command and other branches (e.g., pima.1.R) are created with the saveb command.

Author(s)

Norm Matloff

See Also

edt
makebranch0
nxt
runb
rvinit
saveb

Examples

1
2
loadb("pima.0.R")
loadb("inst/examples/pima.1.R")

matloff/revisit documentation built on May 4, 2019, 4:23 p.m.