I have been trying to learn how to use my R scripts in a bash like Git, so I can run said script in a pipeline, but I am having trouble getting started. I am using a Windows 10 system, and using the Git Bash as my mock Unix bash.
Here is the link to the tutorial I am trying to learn off of: http://swcarpentry.github.io/r-novice-inflammation/05-cmdline/index.html
As a super simple example of a script, I made a script called session-info.R in RStudio. The only code it contained was:
sessionInfo()
I then went to Git Bash, and making sure that I was in the same directory as the script that I just wrote, I typed this into the command line:
Rscript session-info.R
To which I got the error: "bash: Rscript: command not found" Does anyone have any ideas to how I could fix this? I feel like this is a really beginner error, but I haven't been able to figure out for a little while. Thank you for your assistance.