tests/testthat/_snaps/handle_desc.md

desc() fails if it points elsewhere

Code
  duckdb_tibble(a = 1:3, .prudence = "stingy") %>% arrange(desc(a))
Condition
  Error in `arrange()`:
  ! This operation cannot be carried out by DuckDB, and the input is a stingy duckplyr frame.
  i Use `compute(prudence = "lavish")` to materialize to temporary storage and continue with duckplyr.
  i See `vignette("prudence")` for other options.
  Caused by error in `arrange()`:
  ! Function `desc()` does not map to `dplyr::desc()`.

desc() fails for more than one argument

Code
  duckdb_tibble(a = 1:3, b = 4:6, .prudence = "stingy") %>% arrange(desc(a, b))
Condition
  Error in `arrange()`:
  ! This operation cannot be carried out by DuckDB, and the input is a stingy duckplyr frame.
  i Use `compute(prudence = "lavish")` to materialize to temporary storage and continue with duckplyr.
  i See `vignette("prudence")` for other options.
  Caused by error in `arrange()`:
  ! Function `desc()` must be called with exactly one argument.


Try the duckplyr package in your browser

Any scripts or data that you put into this service are public.

duckplyr documentation built on June 8, 2025, 10:53 a.m.