Run R script from command line
I have a file, called a.r
, it has a chmod
of 755,
sayHello <- function(){
print('hello')
}
sayHello()
How can I run this via command-line?
I have a file, called a.r
, it has a chmod
of 755,
sayHello <- function(){
print('hello')
}
sayHello()
How can I run this via command-line?