unitizer_demo {unitizer} | R Documentation |
Demo Details and Helper Functions
Description
unitizer
provides an interactive demo you can run with
demo("unitizer")
.
Usage
`[Press ENTER to Continue]`()
show_file(f, width = getOption("width", 80L))
copy_fastlm_to_tmpdir()
update_fastlm(dir, version)
unitizer_check_demo_state()
unitizer_cleanup_demo()
Arguments
f |
path to a file |
width |
display width in characters |
dir |
path to the temporary package |
version |
one of "0.1.0", "0.1.1", "0.1.2" |
Value
character(1L)
Demo Details
The demo centers around simulated development of the utzflm
package. unitizer
includes in its sources three copies of the source
code for the utzflm
package, each at a different stage of
development. This allows us to create reference unitizer
tests under
one version, move to a new version and check for regressions, and finally
fix the regressions with the last version. The version switching is
intended to represent the package development process.
The demo manages the utzflm
code changes, but between each
update allows the user to interact with unitizer
. The demo operates
under the assumption that the user will accept the first set of tests and
reject the failing tests after the first update. If the user does anything
different then the demo commentary may not apply anymore.
utzflm
utzflm
is a "dummy" package that implements a faster
computation of slope, intercept, and R^2 for single variable linear
regressions than is available via summary(lm()...)
.
Helper Functions
copy_fastlm_to_tmpdir
copies the initial version of the
utzflm
sources to a temporary directory, show_file
displays the contents of a source code file, update_fastlm
changes the
source code of utzflm
, and unitizer_check_demo_state
and unitizer_cleanup_demo
perform janitorial functions. None of
these functions are intended for use outside of the unitizer demo.