I know how to run R from the command line and execute an expression (for example, R -e 'print("hello")'
) or take input from a file (for example, R -f filename.r
). However, in both cases, R starts the expression or commands in the file and then exits.
- How to change the above so that R does not exit after running commands in a file or executing an expression?
source share