AtlasOfLivingAustralia / galah-R

Query living atlases from R
https://galah.ala.org.au
40 stars 2 forks source link

Lists are truncated when using `show_values()` #235

Closed daxkellie closed 5 months ago

daxkellie commented 6 months ago

When trying to display all items in a list with show_values(), galah seems to truncate the number of items returned. For example, the output of search_all() shows that there are 7553 items in this list (id dr22546).

library(galah)
library(dplyr)

search_all(lists, "dr22546") |>
  select(species_list_uid, listName, itemCount)
#> # A tibble: 1 × 3
#>   species_list_uid listName                        itemCount
#>   <chr>            <chr>                               <int>
#> 1 dr22546          Non-native Species in Australia      7553

But when I use show_values() to return these items, the tibble only has 400 rows.

search_all(lists, "dr22546") |> 
  show_values()
#> • Showing values for 'dr22546'.
#> # A tibble: 400 × 6
#>         id name                  scientificName lsid  dataResourceUid commonName
#>      <int> <chr>                 <chr>          <chr> <chr>           <chr>     
#>  1 5530750 Abelia                Linnaea grand… NZOR… dr22546         <NA>      
#>  2 5531924 Abelia chinensis      Abelia chinen… ALA_… dr22546         <NA>      
#>  3 5533011 Abelia floribunda     Vesalea flori… ALA_… dr22546         Honeysuck…
#>  4 5529858 Abelia X grandiflora  Abelia x gran… http… dr22546         Glossy Ab…
#>  5 5527937 Abelmoschus           Abelmoschus    http… dr22546         <NA>      
#>  6 5532849 Abelmoschus manihot   Abelmoschus m… http… dr22546         Abelmosch…
#>  7 5531868 Abelmoschus manihot … Abelmoschus m… http… dr22546         <NA>      
#>  8 5528222 Abelmoschus manihot … Abelmoschus m… http… dr22546         <NA>      
#>  9 5527577 Abelmoschus moschatus Abelmoschus m… http… dr22546         Abelmosch…
#> 10 5533341 Abelmoschus moschatu… Abelmoschus m… http… dr22546         <NA>      
#> # ℹ 390 more rows

Created on 2024-04-05 with reprex v2.0.2

I imagine the query is missing an argument to avoid hitting a default item limit.