Description Usage Arguments Details Value Examples
View source: R/pithon.available.R
Checks if Python is available
1 | pithon.available( instance.name="" )
|
instance.name |
if specified, check the Python instance with this name |
Returns TRUE if the specified Python instance can be used, or FALSE otherwise.
TRUE or FALSE, depending on the availability of Python.
1 2 3 4 5 6 7 8 9 10 11 12 | if (pithon.available()) {
print("Default Python instance is available")
} else {
print("Default Python instance is NOT available")
}
pithon.set.executable( "python3", instance.name="v3" )
if (pithon.available("v3")) {
print("Python version 3 is available")
} else {
print("No Python version 3 can be used")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.