R: Equivalent command to Matlab's keyboard function? -
does r provide similar command debugging matlab's keyboard
?
this command provides interactive shell , can used in function. gives access variables allowing 1 verify input data should (or test why it's not working expected).
makes debugging lot easier (at least in matlab...).
it sounds you're looking browser()
.
from description:
a call ‘browser’ can included in body of function. when reached, causes pause in execution of current expression , allows access r interpreter.
it sounds you're new debugging in r might want read hadley's wiki page on debugging.
Comments
Post a Comment