You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error should contain the source of the call. How to achieve?
library(tidyverse)
library(duckplyr)
dd<- tibble(x=1:100, y= rep(LETTERS[1:20], 5))
write_csv(dd, "test.csv")
## open file without reading it into memory and perform aggregationsdf<- duck_file("test.csv", "read_csv")
df_stat<-df|>
group_by(y) |>
summarise(total= sum(x)) |>
ungroup()
#> Error: Materialization is disabled, use collect() or as_tibble() to materialize
library(tidyverse)
dd<- tibble(x=1:100, y= rep(LETTERS[1:20], 5))
readr::write_csv(dd, "test.csv")
## open file without reading it into memory and perform aggregationsdf<-duckplyr::duck_file("test.csv", "read_csv")
df_stat<-df|>
group_by(y) |>
summarise(total= sum(x)) |>
ungroup()
#> Error in `group_by()`:#> ! This operation cannot be carried out by DuckDB, and the input is a#> lazy duckplyr frame.#> • Try `summarise(.by = ...)` or `mutate(.by = ...)` instead of `group_by()` and#> `ungroup()`.#> • Use `compute(lazy = FALSE)` to materialize to temporary storage and continue#> with duckplyr.#> • See the "Eager and lazy" section in `?duck_tbl()` for other options.
The error should contain the source of the call. How to achieve?
Created on 2024-12-31 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: