I'm trying to write a simple double-clickable file.command on my Mac OSX machine. Here is my shell script on the .command file:
#!/usr/bin/env Rscript
Rscript /Users/MyName/Dropbox/Workout_log_script/workout_log.R
And here is the error I get:
MyName$ /Users/MyName/Desktop/workout_plotter.command ; exit;
Error: object 'Rscript' not found
Execution halted
logout
I don't have much experience with using bash. Does anyone know how I can fix this? Thanks!