Skip to content

Cool way to notify yourself that a long R script has finished running

July 10, 2012

The mail package on CRAN provides a cool way to have R alert you to the fact that your gigantic script has finally finished running. In particular, R will send you an email when the computations are done. Here’s an example:


require(mail)
# really intensive calculations go here...
sendmail("your@email.com")

Once your script is done running, you’ll get this email:

From: rmail@linhi.com
Subject: Notification from R
To: you
Body: Calculation finished!

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: