For %livy.sparkr - this looks like a problem connecting to livy server. Try to restart livy from Spark service.
It is also useful to check the log files:
- interpreter log - usually located in /var/log/zeppelin folder
- application log - %livy.sparkr triggers Spark job in Yarn. So, check the application log for more details
I hope that gives you some idea of why the process fails.