python | R Documentation |
Start a new Python session with the specified options.
Ensure you have python installed.
python(options = NULL, command = NULL, module = NULL, file = NULL,
args = NULL, chdir = FALSE, ..., name = windows.type, dir)
options |
character vector. The options to be provided for the new Python session. |
command |
character vector. The expressions to be run in the new Python session, provided to option -c cmd. |
module |
character string. The library module to run as a script, provided to option -m mod. |
file |
character string. The filename of the Python script to run in the new Python session, provided to option file. |
args |
Converted to character in a similar manner to
|
chdir |
logical; if |
... |
further arguments passed to |
name |
the name or path of the Python executable to use. By default, it
will use the Python executable found on Path. Specifying |
dir |
character string; directory in which the Python executable is located. |
The value of system()
. If intern = FALSE
, it is
returned invisibly.
## Not run:
essentials::python(command = essentials::dedent(r"{
print("Hello World!")
print("An example python script...")
}"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.