I have a file, called a.r, it has a chmod of 755,
a.r
chmod
sayHello <- function(){ print(\'hello\') } sayHello()
Ho
Just for documentation, sometimes you need to run the script as sudo:
sudo
sudo Rscript path/to/your/file.R