I am sourcing a script in R, and modifying errors as they arise but I'd like to continue sourcing at the point where source()
found the error so I don't have to source
from the beginning.
Asked
Active
Viewed 32 times
1

Paulina Paiz
- 41
- 3
-
1does this help? https://stackoverflow.com/questions/33642553/how-to-use-options-error-recover-in-rscript – rawr Nov 18 '21 at 21:04
-
unfortunately I tried this and it didn't work. I am looking for a function or option that preserves the objects and variables created from the sourced file prior to it finding an error. – Paulina Paiz Nov 28 '21 at 02:19