ABSTRACT

This chapter collects some other miscellaneous information, such as material about working with variables and strings. It provides various methods of listing information about variables and clearing or deleting variables. If people execute R code from an editor window, the scan command can behave in an undesirable way, reading its input from subsequent lines of the file rather than from the keyboard. In MATLAB, the command diary foo.out will record a copy of the commands people type, as well as their output, to the file foo.out. It will also continue to display them in the MATLAB command window. MATLAB also has a fairly standard extensive set of debugging tools for further aid in debugging. Some of the relevant commands are dbstop, dbclear, dbstep, and dbcont. Both R and MATLAB platforms provide mechanisms to specify that some code should be run when starting up and/or shutting down the software.