Save (or load) ‘return_as’ conversion preference in an optional config file
save_return_as_preference(
value = c("asis", "array", "matrix", "data.frame", "data.table", "tibble")
)load_return_as_preference()
get_return_as_preference()
set_return_as_preference(
value = c("asis", "array", "matrix", "data.frame", "data.table", "tibble")
)
For the setter, TRUE
is returned invisibly but the function is invoked for the
side effect of storing the value. For either getter, the character value.
A character variable with one of the six permitted values
The tiledb_array
object can set a preference for conversion for each retrieved
object. This preference can also be enconded in a configuration file as R (version
4.0.0 or later) allows a user- and package specific configuration files. These helper
functions sets and retrieve the value, respectively, or retrieve the cached value from
the package environment where is it set at package load.
Note that the value must be one of ‘asis’ (the default), ‘array’, ‘matrix’‘data.frame’, ‘data.table’ or ‘tibble’. The latter two require the corresponding package to be installed.