Is there a way to directly call R functions from Linux command line without going into R environment? It doesn't work for me by just running a R file, since I need to specify the parameters of the function every time I run it.
A simple built-in is the following BASH commands:
export NUM=10
R -q -e "rnorm($NUM)"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With