restorepoint: Debugging with Restore Points

Share:

Debugging with restore points instead of break points. A restore point stores all local variables when called inside a function. The stored values can later be retrieved and evaluated in a modified R console that replicates the function's environment. To debug step by step, one can simply copy & paste the function body from the R script. Particularly convenient in combination with RStudio. See the github page for a tutorial.

Author
Sebastian Kranz
Date of publication
2015-08-29 09:27:37
Maintainer
Sebastian Kranz <sebastian.kranz@uni-ulm.de>
License
GPL (>= 2)
Version
0.1.7
URLs

View on CRAN

Man pages

add.restore.point.test
Add one or several test functions
assert
Checks whether cond holds true if not throws an error
break.point
Sets a break point that can be debugged like a restore point
calls.to.trace
Transforms a list returned by sys.calls into a vector of...
can.parse.multi.line
Checks whether for the installed R version the function...
clone.environment
Deep copy of an environment
copy.into.env
Copies all members of a list or environment into an...
default.error.string.fun
A default error string function for eval with error trace
env.console
Emulates an R console that evaluates expressions in the...
eval.with.error.trace
Evals the expression such that if an error is encountered a...
get.restore.point.options
Get global options for restore points
get.stored.dots
Returns the ellipsis (...) that has been stored in...
get.stored.object.list
Retrieves the list of all restore.points with the stored...
is.storing
Check whether objects currently are stored or not
restore.objects
Restore stored objects by copying them into the specified...
restore.point
Sets a restore point
restore.point.browser
Examing a previously stored restore point by invoking the...
restore.point.options
Set global options for restore points
set.storing
Set whether objects shall be stored or not
store.objects
Stores all local objects of the calling environment to be...

Files in this package

restorepoint
restorepoint/inst
restorepoint/inst/examples
restorepoint/inst/examples/restorepoint_examples.R
restorepoint/NAMESPACE
restorepoint/NEWS
restorepoint/R
restorepoint/R/restorepoint.R
restorepoint/vignettes
restorepoint/vignettes/Guide_restorepoint.html
restorepoint/vignettes/Guide_restorepoint.Rmd
restorepoint/vignettes/Guide_restorepoint.md
restorepoint/README.md
restorepoint/MD5
restorepoint/DESCRIPTION
restorepoint/man
restorepoint/man/get.restore.point.options.Rd
restorepoint/man/clone.environment.Rd
restorepoint/man/default.error.string.fun.Rd
restorepoint/man/restore.point.Rd
restorepoint/man/get.stored.object.list.Rd
restorepoint/man/assert.Rd
restorepoint/man/copy.into.env.Rd
restorepoint/man/add.restore.point.test.Rd
restorepoint/man/set.storing.Rd
restorepoint/man/eval.with.error.trace.Rd
restorepoint/man/restore.objects.Rd
restorepoint/man/is.storing.Rd
restorepoint/man/calls.to.trace.Rd
restorepoint/man/restore.point.options.Rd
restorepoint/man/restore.point.browser.Rd
restorepoint/man/get.stored.dots.Rd
restorepoint/man/can.parse.multi.line.Rd
restorepoint/man/break.point.Rd
restorepoint/man/store.objects.Rd
restorepoint/man/env.console.Rd