redivis$config
redivis$config([default_workflow, default_dataset, default_user, default_organization, api_endpoint, config_dir, tmp_dir, max_parallelization, progress]) → list
Sets library-wide defaults, and returns the current configuration. Arguments that aren't passed are left as they are, and settings that haven't been set fall back to their environment variables. Pass NULL to clear a previously set value.
Arguments passed directly to a method (e.g., table$to_tibble(progress = FALSE)) always take precedence over the configuration.
Parameters:
default_workflow : character | Workflow | NULL
The workflow (owner.workflow) within which unqualified table, query, parameter, transform, notebook, and datasource references are resolved. In Redivis notebooks, this is set to the notebook's workflow.
default_dataset : character | Dataset | NULL
The dataset (owner.dataset) within which unqualified table and query references are resolved, when there's no default workflow.
default_user : character | User | NULL
The owner of unqualified dataset and workflow references.
default_organization : character | Organization | NULL
The owner of unqualified dataset and workflow references, when there's no default user.
api_endpoint : character | NULL
The base URL of the Redivis API. Defaults to https://redivis.com/api/v1.
config_dir : character | NULL
The directory in which credentials are cached after logging in. Defaults to ~/.redivis. Credentials for redivis.com are cached directly in this directory, and those for any other API endpoint in a subdirectory for its host (e.g., environments/localhost_8080/).
tmp_dir : character | NULL
The directory in which to temporarily store data, such as for disk-backed data objects (e.g., Table$to_arrow_dataset). Defaults to tempdir().
max_parallelization : integer | NULL
The default for the max_parallelization argument of methods that read, download, or upload data in parallel, such as table$to_tibble(), table$download_files(), and table$add_files(). When not set, each method uses its own default, based on the number of available cores.
progress : logical | NULL
The default for the progress argument, which shows progress bars for long-running operations. Defaults to TRUE.
Returns:
list — the current value of every setting, with NULL for those that aren't set. Returned invisibly when any setting is passed.
Examples
Was this helpful?

