powered by
The function pyExecfile calls the Python function execfile. which is the Python equivalent to the function source provided in R.
execfile
source
pyExecfile(filename)
a character string giving the name or full path of the file to be executed.
The function execfile is kind of the source of Python. Since it got omitted in Python 3 a replacement gets assigned following common practices.
# NOT RUN { pyExecfile("myPythonScript.py") # }
Run the code above in your browser using DataLab