Skip to content
Advertisement

Shell bash script does not run R

I have an R script that I can run with

JavaScript

and it successfully returns the results to a.txt. I am attempting to write a new shell script that plan to run daily, and have made the following script, called morning

JavaScript

I run this with the following commands

JavaScript

I can get this to work sort of, but end up with the error

JavaScript

and execution halts midway through. When I run it with a different command (such as echo alpha > a.txt) it works as expected.

I am working under Ubuntu 14.04

JavaScript

Advertisement

Answer

In your morning file. Please also check if R is in the PATH.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement