Running from command line

Python

$ python -c "print('hello from Python')"

This produces:

hello from Python

R

$ R --quiet -e "print('hello from R')"

This produces:

> print('hello from R')
[1] "hello from R"