load_commands: Set up simple one-word commands

Description Usage Details See Also Examples

View source: R/utils.R

Description

After load_commands(expt) is called, entering READY, START, HALT, PAUSE, RESTART, INFO, MAP or WEB_TEST will call the corresponding command on the experiment, with no arguments.

Usage

1

Details

load_commands is implemented using makeActiveBinding. For obvious reasons, don't assign to the values READY etc. either before or after this is called!

unload_commands simply removes the command names from the global environment.

See Also

Other command line functions: get_url, info, map, nperiods, print,Experiment,ANY-method, print,Experiment-method, print_stages, session_name; halt; merge_subjects; next_stage; pause; ready; replay; restart; start.Experiment; trace_stage, untrace_stage

Examples

1
2
3
4
expt <- experiment(name="myexpt", N=2, seats_file=NULL, record=FALSE)
info(expt)
load_commands(expt)
INFO

hughjonesd/betr documentation built on May 17, 2019, 9:11 p.m.