-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error rather than warning if download fails #7
Comments
Yeah I'm not entirely sure yet how to deal with this. If you are downloading many files, and one fails, should the entire operation be aborted? What about files that you already downloaded? |
My thoughts: I personally really dislike warnings in R - they're easily lost and don't get printed at a useful time. If it's informational and requires no user action I prefer message and if it's likely something terrible happened then I prefer errors (same idea as https://dave.cheney.net/2015/11/05/lets-talk-about-logging) but I recognise that's just a personal view. How about return a logical vector TRUE/FALSE for success and include a Because of the manipulation of global state you can't make the whole thing atomic (all work or none work) and scp itself doesn't try. |
What about
|
With tryCatch one can easily capture errors or warnings
|
ssh::scp_download
just warns if upload fails rather than errors - can this be turned into an error (even if it's an option that one has to set)?The text was updated successfully, but these errors were encountered: