Re: [R] aborting the execution of a function...

2022-07-14 Thread akshay kulkarni
Dear Bill, Many thanks .. Yours sincrely, AKSHAY M KULKARNI From: Bill Dunlap Sent: Thursday, July 14, 2022 1:28 AM To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] aborting the execution of a function... You could write a

Re: [R] aborting the execution of a function...

2022-07-14 Thread akshay kulkarni
Dear Avi, THanks a lot... Yours sincerely, AKSHAY M KULKARNI From: R-help on behalf of avi.e.gr...@gmail.com Sent: Thursday, July 14, 2022 1:39 AM To: 'R help Mailing list' Subject: Re: [R] aborting the execution of a functio

Re: [R] aborting the execution of a function...

2022-07-13 Thread Bill Dunlap
You could write a function that returns an environment (or list if you prefer) containing the results collected before the interrupt by using tryCatch(interrupt=...). E.g., doMany <- function(names) { resultEnv <- new.env(parent=emptyenv()) tryCatch( for(name in names) resultEnv[[