pithon.available: pithon.available

Description Usage Arguments Details Value Examples

View source: R/pithon.available.R

Description

Checks if Python is available

Usage

1
  pithon.available( instance.name="" )

Arguments

instance.name

if specified, check the Python instance with this name

Details

Returns TRUE if the specified Python instance can be used, or FALSE otherwise.

Value

TRUE or FALSE, depending on the availability of Python.

Examples

 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")
}

rPithon documentation built on May 2, 2019, 5:51 p.m.