Skip to content

Version 2.0: chunk_size parameter broken in read_delim_chunked function #1248

Closed

Description

Hi,

I just updated to version 2.0. The chunk_size parameter of the read_delim_chunked function does not seem to work. Regardless of the argument that I pass, the chunk size remains fixed at 10000.

Thanks.

EDIT: Here is a reproducible example. Chunk size argument does not work when reading mtcars.csv:

library(readr)
f <- function(x, pos) print(nrow(x))
read_delim_chunked(file = readr_example("mtcars.csv"),
                   delim = ",",
                   callback = SideEffectChunkCallback$new(f),
                   chunk_size = 5)

The output is "32," indicating that all 32 rows were read at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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