Skip to content

Progress bar causes integer overflow #288

@mem48

Description

@mem48

When using the .progress = TRUE argument for a large vector, it is possible to get this error message

Progress: ──────────────────────────────                                                                                                       100%
Error in rep(" ", times = width_space) : invalid 'times' argument
In addition: Warning message:
In width_usable * n_ticks : NAs produced by integer overflow

A simple reprex:

myFunc = function(x){
  1L
}

future::plan("multisession")
res <- furrr::future_map_int(1:1e9, myFunc, .progress = TRUE)
future::plan("sequential")

Tested on R version 4.3.3 Windows 11 x64 with furrr 0.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions