You can call the script from the terminal using Rscript, something like
$ Rscript myscript.R
For my preference, I include at the very first line of the script the location of RScript in my computer with a shebang
#!/usr/bin/Rscript
and then make it executable with
$ chmod +x myscript.R
And finally run it:
$ ./myscript.R
Not sure if this could work on windows system. Certainly Rscript works, so that's what you should be looking at
ht_smile:
cheers
Fer