pyPrint: Convenience function to print a given Python object to the R...

Description Usage Arguments Details Examples

Description

Prints a given Python variable to the R terminal.

Usage

1
pyPrint(objName)

Arguments

objName

a character string to be evaluated in Python and printed to the R terminal.

Details

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.

Examples

1
2
pyPrint("'Hello ' + 'R!'")
pyPrint("sys.version")


Search within the PythonInR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.