makebranch0: Make Branch 0

Description Usage Arguments Details Author(s) See Also Examples

View source: R/revisit.R

Description

Creates the initial branch of the original code file being studied.

Usage

1
makebranch0(origcodenm)

Arguments

origcodenm

Filename, including path, of the original code file.

Details

This function creates the initial branch of the original code file, giving it a branch id of 0. For example, makebranch0("pima.R") will create file pima.0.R. The new file will contain the code of the original file, prepended by the following lines:

1
2
3
# RV history start
# original code
# RV history end

The new file can then be loaded with the loadb command. For example, makebranch0("pima.R") will create file pima.0.R which can then be loaded with loadb("pima.0.R").

Author(s)

Norm Matloff

See Also

edt
loadb
nxt
runb
rvinit
saveb

Examples

1
2
makdbranch0("pima.R")
makdbranch0("inst/examples/pima.R")

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