I'm writing a bash script to be executed on both Windows and Linux machines from the terminal. One of the lines calls Rscript, a program for executing .R programs. The issue is that in Linux, the command is simply Rscipt
, whereas in Windows, it is Rscript.exe
. Is there any way to modify the program such that it'll run seamlessly on both Windows and Linux operating systems?
Thank you.