Skip to contents

xr_dataset() returns the xarray Dataset handle (not converted), xr_module() the xarray module. Everything the veneer cannot express is one step away.

Usage

xr_dataset(conn)

xr_module(conn)

Arguments

conn

an XarrayConnection

Value

a reticulate Python object, not converted to R

See also

dbConnect() with object = to connect to a Dataset built or changed in Python; xrdbi-package for an overview.

Examples

if (FALSE) { # \dontrun{
## needs a Python environment with xarray (see ?xrdbi)
f <- system.file("extdata/autotest/trmm.nc", package = "xrdbi")
con <- dbConnect(xarray(), f)
ds <- xr_dataset(con)
ds$pcp$encoding
xr_module(con)$`__version__`
} # }