You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will return NA-s in case of errors, though it might be dangerous because try can be still informative because it can return the error message ...
Though tryCatch can also be 'instructed' to pass the error message, but is just getting more verbose than try in that case.
The text was updated successfully, but these errors were encountered:
Would it be better to replace all the
try
statements withtryCatch
, because we can assign return values likeNA
in case of error?So, for example in
boot_networklevel_once()
, instead of having this:we could better have this:
This will return NA-s in case of errors, though it might be dangerous because
try
can be still informative because it can return the error message ...Though
tryCatch
can also be 'instructed' to pass the error message, but is just getting more verbose thantry
in that case.The text was updated successfully, but these errors were encountered: