Skip to content
Back to formatted view

Raw Message

Message-ID: <PU4P216MB1568C696EE4D3EB29FDFC178C8889@PU4P216MB1568.KORP216.PROD.OUTLOOK.COM>
Date: 2022-07-14T16:09:12Z
From: akshay kulkarni
Subject: aborting the execution of a function...
In-Reply-To: <A5DEF48F-C65C-4A09-9A7B-DB48BCF2C168@dcn.davis.ca.us>

Dar Jeff,
              Many thanks...

Yours sincerely,
AKHAY M KULKARNI
________________________________
From: Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
Sent: Thursday, July 14, 2022 1:18 AM
To: r-help at r-project.org <r-help at r-project.org>; akshay kulkarni <akshay_e4 at hotmail.com>; R help Mailing list <r-help at 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 at 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,
>AKSHAY M KULKARNI
>
>
>
>       [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>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]]