1

I run simulations in R that often take a long time (days or weeks). Is is possible to have R send me an SMS notification when the simulations finish?

I see that it's possible to set up an alarm but I don't see how to set up text notifications.

Community
  • 1
  • 1
User7598
  • 1,658
  • 1
  • 15
  • 28
  • what platform are you on? you could do this in one-line shell script by emailing yournumber@youcarrierSMSaddress.com instead of using an r emailing package – rawr Mar 23 '15 at 19:24
  • I generally use Windows Server 2012 but I also use OS applications. If possible, I'd prefer to use R in case I switch platforms. – User7598 Mar 23 '15 at 19:28
  • 2
    pushbullet? https://www.pushbullet.com/ and http://cran.r-project.org/web/packages/RPushbullet/index.html – cory Mar 23 '15 at 20:05
  • This may be of use: https://kbroman.wordpress.com/2014/09/03/notifications-from-r/ – Tyler Rinker Mar 23 '15 at 23:10

1 Answers1

2

Here is a simple code that will send you notifications using RPushbullet:

library(RPushbullet)
pbPost(title="Simulations are completed",
  apikey="KEY HERE", #API key is found in account settings
  devices="DEVICE ID HERE") #Device ID's are found on devices page.

The apikey is located in your account settings (and is free)

The device id's can be found by clicking on each device and pasting the value(s) following the equal signs (shown by the X's below).

www.pushbullet.com/?device_iden=XXXXXXXXXXXXXXXX

As noted in the comments, more sophisticated approaches are described here and here.

User7598
  • 1,658
  • 1
  • 15
  • 28