-
[is now an alias forcdo_execute(). This enables more compact notation (e.g.cdo_monmean(file)[]) -
cdo_execute()is a no-op for anything that it's not a cdo operation. This supports using this functions with elements that might be a cdo operation depending on previous code and also makes it equivalent to[].
- Fix crash when using cache for operators without output
- Fix error for operators without output
- Automatically creates directories if needed.
-
Adds caching support in
cdo_execute()andcdo_execute_list()as well as cache management withcdo_cache_set()andcdo_cache_unset(). -
Global options are now not replaced by default if an
optionsargument is supplied. The newoptions_replacecontrols this behaviour. If it'sFALSE, then global options, operation options and argument options are all concatenated (duplicated options are not checked for). If it'sTRUE, then only the argument options are used, even if they areNULL(which implies, no options). This is potentially a breaking change.
- Improved performance of command building by only checking the cdo version installed when needed and also caching the result per session.
- Added options management.
cdo_options_use()will use options for an operation.cdo_option_set()will set global options to use for all operations.cdo_options_clear()will clear the global options. - The new
cdo_operator()allows the user to define an arbitrary operator in case the some operator is missing in the package. Operators are run with thecdo()function. - Added operators with zero outputs.
- By default, temporary files output are deleted when not accessible from the R session.
- Adds change operators.
- Adds
cdo_execute_list()to execute a list of cdo operations. This is the preferred way of applying operations to a set of files since it preserves ephemeral files correctly.