- data_path
a path to the DuckDB
database file with '.duckdb' extension, or a path to the folder with parquet
files. Eigher one should have been created with the spod_convert function.
- target_table_name
Default is NULL
. When connecting to a folder of parquet
files, this argument is ignored. When connecting to a DuckDB
database, a character
vector of length 1 with the table name to open from the database file. If not specified, it will be guessed from the data_path
argument and from table names that are available in the database. If you have not manually interfered with the database, this should be guessed automatically and you do not need to specify it.
- quiet
A logical
value indicating whether to suppress messages. Default is FALSE
.
- max_mem_gb
integer
value of the maximum operating memory to use in GB. NULL
by default, delegates the choice to the DuckDB
engine which usually sets it to 80% of available memory. Caution, in HPC use, the amount of memory available to your job may be determined incorrectly by the DuckDB
engine, so it is recommended to set this parameter explicitly according to your job's memory limits.
- max_n_cpu
The maximum number of threads to use. Defaults to the number of available cores minus 1.
- temp_path
The path to the temp folder for DuckDB for intermediate spilling in case the set memory limit and/or physical memory of the computer is too low to perform the query. By default this is set to the temp
directory in the data folder defined by SPANISH_OD_DATA_DIR environment variable. Otherwise, for queries on folders of CSV files or parquet files, the temporary path would be set to the current R working directory, which probably is undesirable, as the current working directory can be on a slow storage, or storage that may have limited space, compared to the data folder.