View source: R/as_sqlite_backend.R
as_sqlite_backend | R Documentation |
Converts to a DataBackendDplyr using a RSQLite database, depending on the input type:
data.frame
: Creates a new DataBackendDataTable first using as_data_backend()
, then proceeds
with the conversion from DataBackendDataTable to DataBackendDplyr.
mlr3::DataBackend: Creates a new SQLite data base in the specified path. The filename is determined by the hash of the DataBackend. If the file already exists, a connection to the existing database is established and the existing files are reused.
The created backend automatically reconnects to the database if the connection was lost, e.g. because the object was serialized to the filesystem and restored in a different R session. The only requirement is that the path does not change and that the path is accessible on all workers.
as_sqlite_backend(data, path = getOption("mlr3db.sqlite_dir", ":temp:"), ...)
data |
( |
path |
(
The default for this argument can be configured via option |
... |
( |
DataBackendDplyr or Task.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.