Skip to content

Commit

Permalink
Change default to eager reading
Browse files Browse the repository at this point in the history
Fixes #1266
  • Loading branch information
jimhester committed Oct 12, 2021
1 parent 7ded0b0 commit 5ac729a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# readr (development version)

* All readr functions again read eagerly by default. Unfortunately many users
experienced frustration from the drawbacks of lazy reading, in particular
locking files on Windows, so it was decided to disable lazy reading default.
However `options(readr.read_lazy = TRUE)` can be used to set the default to by lazy if desired.
* New `readr.read_lazy` global option to control if readr reads files lazily or not (#1266)

# readr 2.0.2
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ should_show_types <- function() {
#' - `options(readr.read_lazy = FALSE)`
#' @export
should_read_lazy <- function() {
identical(getOption("readr.read_lazy", TRUE), TRUE)
identical(getOption("readr.read_lazy", FALSE), TRUE)
}

deparse2 <- function(expr, ..., sep = "\n") {
Expand Down

0 comments on commit 5ac729a

Please sign in to comment.