Learn R Programming

spanishoddata (version 0.2.0)

spod_duckdb_set_temp: Set temp file for DuckDB connection

Description

Set temp file for DuckDB connection

Usage

spod_duckdb_set_temp(con, temp_path = spod_get_temp_dir())

Value

A duckdb connection.

Arguments

con

A duckdb connection

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.