This function configures odcr to connect with the correct Python environment and check the availability of the datacube Python library.

config(python = NA, required = T)

Arguments

python

character, path to a python or conda binary/environment that should be used by odcr. Note that the selected Python environment must have the datacube library installed (and its upstream Python and system dependencies must be available). To set up a datacube environment ready for Pyhton and R 'out of the box', please see eo2cube's odcbox.

required

logical, whether the use of this python install should be forced even if major libraries are missing or not

Value

None

Examples

if (FALSE) { library(odcr) config(python = "/env/bin/python3") }