Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show_values() truncates fields at 30 rows #222

Closed
daxkellie opened this issue Dec 8, 2023 · 0 comments
Closed

show_values() truncates fields at 30 rows #222

daxkellie opened this issue Dec 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@daxkellie
Copy link
Collaborator

When trying to see all values within a field, fields larger than 30 rows are truncated by show_values()

library(galah)

search_all(fields, "dataResourceName") |>
  show_values()
#> ! Search returned 2 matched fields.
#> • Showing values for 'dataResourceName'.
#> # A tibble: 30 × 1
#>    dataResourceName              
#>    <chr>                         
#>  1 eBird Australia               
#>  2 NSW BioNet Atlas              
#>  3 BirdLife Australia, Birdata   
#>  4 Victorian Biodiversity Atlas  
#>  5 iNaturalist Australia         
#>  6 New South Wales Bird Atlassers
#>  7 First Bird Atlas              
#>  8 SA Flora                      
#>  9 Garden Bird Surveys           
#> 10 SA Fauna                      
#> # ℹ 20 more rows

This affects the ability to use search_values() to search for names within truncated fields.

# no matches returned for "FrogID"
search_all(fields, "dataResourceName") |>
  search_values("FrogID")
#> ! Search returned 2 matched fields.
#> • Showing values for 'dataResourceName'.
#> # A tibble: 0 × 1
#> # ℹ 1 variable: dataResourceName <chr>

# However, data is returned for "FrogID" in a query
galah_call() |>
  filter(dataResourceName == "FrogID") |>
  group_by(dataResourceName) |>
  atlas_counts()
#> # A tibble: 1 × 2
#>   dataResourceName  count
#>   <chr>             <int>
#> 1 FrogID           484227

Created on 2023-12-08 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant