Subdataset and VRT connection strings.
sds(x, varname, driver, quote = TRUE)
character vector, of data source names (file paths, urls, database connection strings, or GDAL dsn)
named of variable in DSN
driver to use, e.g. "NETCDF", "HDF5"
wrap the core dsn in escaped double quotes, or not
character string of the form "DRIVER:%s:varname"
f <- "myfile.nc"
sds(f, "variable", "NETCDF", quote = FALSE)
#> [1] "NETCDF:myfile.nc:variable"