pyPrint | R Documentation |
Prints a given Python variable to the R terminal.
pyPrint(objName)
objName |
a character string to be evaluated in Python and printed to the R terminal. |
Internally it uses a combination of pyExec and print. Please note that the result of pyExecp("x") and pyPrint("x") often will be different, since pyExecp("x") is equivalent to typing x into the Python terminal whereas pyPrint("x") is equivalent to typing print(x) into the Python terminal.
pyPrint("'Hello ' + 'R!'")
pyPrint("sys.version")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.