save_return_as_preference | R Documentation |
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")
)
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.
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.
This function requires R version 4.0.0 or later to utilise the per-user
config directory accessor function. For older R versions, please set the attribute
directly when creating the tiledb_array
object, or via the
return_as()
method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.