pyExecfile: Executes Python source file from within R

Description Usage Arguments Details Examples

Description

The function pyExecfile calls the Python function execfile. which is the Python equivalent to the function source provided in R.

Usage

1
pyExecfile(filename)

Arguments

filename

a character string giving the name or full path of the file to be executed.

Details

The function execfile is kind of the source of Python. Since it got omitted in Python 3 a replacement gets assigned following the suggestions from
http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html.

Examples

1
2
3
4
## Not run: 
pyExecfile("myPythonScript.py")

## End(Not run)


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.