Re: [R] Error Awareness

2021-12-26 Thread David Winsemius
On 12/23/21 3:11 AM, Stephen H. Dawson, DSL via R-help wrote: Hi, I am thinking about awareness of errors when an R script runs. My concern is I have an error-free script. I run it for months on end without problems. Then, something changes somewhere causing an error. My wonderment is how

Re: [R] Error Awareness

2021-12-24 Thread Richard O'Keefe
You want to read this: http://adv-r.had.co.nz/Exceptions-Debugging.html It describes all the ways that R can report a problem and all the ways you can catch such a report while still in R. Let me heartily recommend the whole site, or better yet, the book

Re: [R] Error Awareness

2021-12-24 Thread Avi Gross via R-help
. For now, I think I will step aside and focus my efforts elsewhere. -Original Message- From: Stephen H. Dawson, DSL Sent: Friday, December 24, 2021 9:49 AM To: Avi Gross ; 'r-help mailing list' Subject: Re: [R] Error Awareness Thank you, Avi. I appreciate your reply. I agree maturing

Re: [R] Error Awareness

2021-12-24 Thread Stephen H. Dawson, DSL via R-help
if things do happen, then your code is not robust enough. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Thursday, December 23, 2021 11:17 AM To: Bert Gunter Cc: R-help Subject: Re: [R] Error Awareness Hi Bert, Thanks for the reply. The use case I

Re: [R] Error Awareness

2021-12-23 Thread Avi Gross via R-help
is not robust enough. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Thursday, December 23, 2021 11:17 AM To: Bert Gunter Cc: R-help Subject: Re: [R] Error Awareness Hi Bert, Thanks for the reply. The use case I presented involves working code

Re: [R] Error Awareness

2021-12-23 Thread Jeff Newmiller
You still are not exhibiting signs of understanding Bert's response, and your question is vague, particularly to the extent that it could be pertinent to the R language (and therefore to the topic of this list). R itself just raises an error condition that custom tryCatch or default handling

Re: [R] Error Awareness

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
Hi Bert, Thanks for the reply. The use case I presented involves working code, not diagnosing a script in development. The concern is running a script where something changes outside of the script, as I stated. An example of a change is a data source changing perhaps the columns in the

Re: [R] Error Awareness

2021-12-23 Thread Bert Gunter
?tryCatch This list is not meant for tutorials. A web search on "find errors in R code" brought up what appeared to be many resources to address your question. Please make use of such resources before posting here. Also, please read and follow the posting gui)de linked below to find out what sort

[R] Error Awareness

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
Hi, I am thinking about awareness of errors when an R script runs. My concern is I have an error-free script. I run it for months on end without problems. Then, something changes somewhere causing an error. My wonderment is how R will tell me I had an error in the script, but the rest of