Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to disable progress bar when creating connection? #1074

Open
jhrcek opened this issue Mar 12, 2025 · 0 comments
Open

Question: How to disable progress bar when creating connection? #1074

jhrcek opened this issue Mar 12, 2025 · 0 comments

Comments

@jhrcek
Copy link

jhrcek commented Mar 12, 2025

I'm using duckdb R package 1.2.0.

When running long queries, I occasionally get progress bar display.
I'm running in an environment without proper terminal support and I'd like to disable rendering of progress bar.
I know it's possible to do it by explicitly running the statement SET enable_progress_bar = false;
But doing this every time gets annoying fast.
Is it possible to disable progress bar using connection options?

I tried using config parameter of ducdkb() function like this:

con <- DBI::dbConnect(
      duckdb::duckdb(
            dbdir =  "...", 
            read_only = TRUE,
            config = list( max_memory=Sys.getenv("DUCKDB_MAX_MEMORY", unset="16GB"),
                            temp_directory="/tmp/duckdb_temp",
                            enable_progress_bar="false")
     )
  )

But this gives me the following error:

rapi_startup: Failed to set configuration option: {"exception_type":"Invalid Input","exception_message":"Could not set option \"enable_progress_bar\" as a global option"}

Tried various values for enable_progress_bar ("f", "0", "FALSE", "False") but nothing seems to work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant