$ python -c "print('hello from Python')"
This produces:
hello from Python
$ R --quiet -e "print('hello from R')"
> print('hello from R') [1] "hello from R"