View source: R/find_python_cmd.r
is_python_sufficient | R Documentation |
is_python_sufficient()
checks whether a given python binary has all the
desired features (minimum and/or maximum version number and/or access to
certain modules).
is_python_sufficient(
path,
minimum_version = NULL,
maximum_version = NULL,
required_modules = NULL
)
path |
The path to a given python binary. If binary is on system path just the binary name will work. |
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 |
TRUE
or FALSE
depending on whether the python binary met all requirements
try({
cmd <- find_python_cmd()
is_python_sufficient(cmd, minimum_version = "3.3", required_modules = "sys")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.