Get notified when new R version is released - r

Simply and concisely speaking; is it possible to receive any notification when new R version is available? By notification, I mean receiving a message when running RStudio, or receiving email or whatsoever.

Related

IBM MQ XMS Message Listener fetching only the Messages which is already available in Queue and not a new one

I have Sender and receiver console applications for IBM MQ XMS. The sender populates the Queue and the receiver dequeue the queue manger using receive method. I am using the while loop with bool value to keep running the receiver so that whenever a new message is available in the queue receiver can get that data.
Now i want to change the receiver code to Asynchronous Message Listener instead of consumer.Receive().
The code snippet is,
consumerAsync = sessionWMQ.CreateConsumer(destination);
messageListener = new MessageListener(OnMessageCallBack);
consumerAsync.MessageListener = messageListener;
connectionWMQ.Start();
While(true)
{
console.writeline("Wait for message");
}
The above code fetches only the already available data and not the new one. For example if i have 2 data in my queue while starting the receiver application those messages getting downloaded. but when i keep the receiver application running and send a new data from sender app its not getting downloaded and i have to restart the receiver application to get that data. The similar scenario was working fine with
synchronous mode consumer.ReceiveNoWait().
What am I missing?
Version of XMS? Version 9.2 has a bug that was confirmed by IBM 10.28.2020. They're working on a fix. No APAR yet. Temporary solution would be to downgrade to client version 9.1.
Update: Received a fix built on version 9.2.0.1 IT34722. Tested ok. Should be released with fixpack 9.2.0.4.
I have posted a support-case to ibm on this issue a long time ago(81 days...)
Long time for such a bug. The apar is IT34722 but at the date is still in open status.
9.1.3 might work but have other problems/bugs and will not be found as nuget-package

R / Shiny promises and futures not working with httr

I am working in a Shiny app that connects to Comscore using their API. Any attempt at executing POST commands inside future/promises fails with the cryptic error:
Warning: Error in curl::curl_fetch_memory: Bulk data encryption algorithm failed in selected cipher suite.
This happens with any POST attempt, not only when/if I try to call Comscore´s servers. As an example of a simple, harmless and uncomplicated POST request that fails, here is one:
rubbish <- future(POST('https://appsilon.com/an-example-of-how-to-use-the-new-r-promises-package/'))
print(value(rubbish))
But everything works fine if I don not use futures/promises.
The problem I want to solve is that currently we have an app that works fine in a single user environment, but it must be upgraded for a multiuser scenario to be served by a dedicated Shiny Server machine. The app makes several such calls in a row (from a few dozen to some hundreds), taking from 5 to 15 minutes.
The code is running inside an observeEvent block, triggered by a button clicked by the user when he has configured the request to be submitted.
My actual code is longer, and there are other lines both before and after the POST command in order to prepare the request and then process the received answer.
I have verified that all lines before the POST command get executed, so the problem seems to be there, in the attempt to do a POST connecting to the outside world from inside a promise.
I am using RStudio Server 1.1.453 along with R 3.5.0 in a RHEL server.
Package versions are
shiny: 1.1.0
httr: 1.3.1
future; 1.9.0
promise: 1.0.1
Thanks in advance,

Email notification from R programming (R code runs successfully or fails)

I pulling data from JSON API, sometimes it fails and returns http code not equal to "200" [status_code="200" means connection was successful]
Get_data<- GET(URL,authentication("abs#def.com","password"))
Get_code<- status_code(Get_data)
If Get_code=200; it means the Get_data worked well.
So here, I need help with:
If Get_code="200" then I need to send an email with message as "Connection is successful" else "Connection declined"
I tried using R packages like: mail, mailR, sendmailR but could not create the desired code. please direct us with your inputs.
Thanks!
If you've tried mailR and that didn't work, I advise you take a look at an ifttt recipe : https://ifttt.com/
The maker channel from ifttt can take any input, including one from R. You can then set a recipe saying :
IF THIS : received an input from R in the maker channel
THEN THAT : send an email (or a push notification, or anything possible with ifttt).
You should check this blogpost to know how to connect ifttt & R : http://bconnelly.net/2015/06/connecting-r-to-everything-with-ifttt/
Best,
Colin

Setup R alert when long process is Finished

I'm running a really long process and it would be great if there was a way to get R to Call, Email or Text me when its finished. Is there a way to setup an R-email script to be run when a program terminates or perhaps something that might employ IFTTT to send me a text message or Call in case I'm sleeping.
I'm using RStudio as my IDE so maybe there is such a feature through there.
If there is a way to track progress that would be nice too, but not 100% required
From this article:
http://alicebrawley.com/getting-r-to-notify-you-when-its-finished/
My general solution is to combine the R package mail, written by Lin
Himmelmann, and variations on an IFTTT (If This, Then That) recipe. I
use mail to send an email using functions in R, then IFTTT to notify
me immediately of that particular email.
Once you’ve installed mail, use the following functions to send
yourself an email when your code is completed.
#Have R email you when it's done running.
###Calculating - your wish is R's command.
library(mail)
#Send yourself an email - specify your preferred email address, subject, and message. The password is fixed at "rmail".
sendmail("xxxxx#xxxxx.com", subject="Notification from R", message="Conditions finished running!", password="rmail")
You can then use IFTT triggered by the email.
If you're sleeping next to your computer, consider also: Is there a way to make R beep/play a sound at the end of a script?

Issue when initiating RStudio - R Session Disconnected

Out of the blue I started getting a "R Session Disconnected" message when opening the RStudio and even pressing the botton for Reconnect the following is a "R Session Aborted" error message followed by a new initiation of RStudio which enters in this loop of Session Disconnected.
In that first message, there is some indicative that "this browser was disconnected from the R because another browser connected". I did not make any change in my enviroment to justify such error. Already desinstalled and installed R and RStudio and those errors continue.
I´m using OneDrive to store some files, I don´t know if this may be associated with the problem but even in OneDrive I did not change anything that could be associated with.

Resources