Description Usage Arguments Details Value
This function runs Python code contained in a file. This is basically
a convenience function that is the equivalent of py.exec(readLines(file))
.
1 |
file |
a connection or file name that will be passed to |
stopOnException |
logical value indicating whether to check or not to
call |
For better maintainability, it might be worth investigating concentrating
more complex Python code that needs to be called from R into proper packages
that can be installed using pip
and loaded with
py.exec("import package_name")
.
if stopOnException
is FALSE
, invisibly returns a string
representation of any raised Python exceptions or NULL if none occur.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.