Skip to content

Instantly share code, notes, and snippets.

@johnatasjmo
Created June 18, 2021 04:01
Show Gist options
  • Save johnatasjmo/d30ab785fdd3c72d6efc76eda2bda57b to your computer and use it in GitHub Desktop.
Save johnatasjmo/d30ab785fdd3c72d6efc76eda2bda57b to your computer and use it in GitHub Desktop.
# source files with errors
# https://stackoverflow.com/questions/14612190/is-there-a-way-to-source-and-continue-after-an-error
# Source TD Data Pull
ll <- parse(file = "11-tda_pull.R")
for (i in seq_along(ll)) {
tryCatch(eval(ll[[i]]),
error = function(e) message("Oops! ", as.character(e)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment