I need to Run R interpreter within a shell script an issue some predefined R commands through the shell script. Is this possible?
Right now I have a shell script as follows.
#!/bin/bash
echo "Starting R"
R
This starts an interactive R shell. Now I need to issue some R commands using the same shell script. any ideas?