View source: R/find_python_cmd.r
find_python_cmd | R Documentation |
find_python_cmd()
finds a suitable python cmd or raises an error if not possible
find_python_cmd(
minimum_version = NULL,
maximum_version = NULL,
required_modules = NULL,
error_message = NULL
)
minimum_version |
The minimum version of python it should be.
Should be a string with major and minor number separated by a |
maximum_version |
The maximum version of python it should be.
Should be a string with major and minor number separated by a |
required_modules |
Which modules should be required.
Can use a single |
error_message |
What error message the user will see if couldn't find a sufficient python binary. If left NULL will print out a default message. |
The path to an appropriate python binary. If such a path wasn't found then it will throw an error.
can_find_python_cmd()
for a wrapper which doesn't throw an error
try(find_python_cmd())
try(find_python_cmd(minimum_version = "2.6", maximum_version = "2.7"))
try(find_python_cmd(required_modules = c("argparse", "json | simplejson")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.