Below is an example showing how the exact same call can be done in a Unix shell as in a Windows shell.
All that is required is that the myscript.R
is in the same folder as myscript
and myscript.bat
.
This makes it easier to document and easier to give examples.
Note, for it to work on Unix without having to specify ./myscript
when calling it from the same directory,
the current diectory has be part of the PATH
, e.g. export PATH=".:$PATH"
. If myscript
is placed in
a folder that is already in the PATH
, the below will work out of the box.