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

akshay kulkarni @k@h@y_e4 @end|ng |rom hotm@||@com
Thu Jul 14 18:09:12 CEST 2022

Dar Jeff,
              Many thanks...

Yours sincerely,
From: Jeff Newmiller <jdnewmil using dcn.davis.ca.us>
Sent: Thursday, July 14, 2022 1:18 AM
To: r-help using r-project.org <r-help using r-project.org>; akshay kulkarni <akshay_e4 using hotmail.com>; R help Mailing list <r-help using r-project.org>
Subject: Re: [R] aborting the execution of a function...

This would be easy for you to test on a small example on your local computer.

But the answer is "no". Nothing is assigned if the function does not return normally... and Ctrl+C is anything but normal.

On July 13, 2022 12:19:58 PM PDT, akshay kulkarni <akshay_e4 using hotmail.com> wrote:
>Dear members,
>                         I am running a large scraping code in a very powerful AWS ec2 instance:
>DATES <- getFirms Dates()
>It iterates over 500 stocks from a website. Despite the power of the machine, the execution is very slow.
>If I abort the function (by ctrl + C), after, say 150th iteration, the DATES object will still contain the scraped data untill the 150th iteration, right? ( The rest of the 350 entries will be NA's, I suppose).
>Many thanks in advance.....
>Yours sincerely,
>       [[alternative HTML version deleted]]
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

Sent from my phone. Please excuse my brevity.

	[[alternative HTML version deleted]]

More information about the R-help mailing list