Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehwenk committed Nov 18, 2024
1 parent 85eb6b0 commit 13088d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/join_.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ join_contributors <- function(database,

compacted_contributors_column <-
contributors_tmp %>%
tidyr::nest(-dplyr::all_of("dataset_id")) %>%
tidyr::nest(data = -dplyr::all_of(c("dataset_id"))) %>%
dplyr::mutate(data_contributors = purrr::map_chr(data, jsonlite::toJSON)) %>%
dplyr::select(-dplyr::any_of("data")) %>%
dplyr::ungroup()
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-extract_.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ test_that("Extraction of dataset was successful", {
})

test_that("Expect error if taxon_name column missing", {
traits_without_taxon_name <- database$traits %>% dplyr::select(-taxon_name)
traits_without_taxon_name <- database
traits_without_taxon_name$traits <- database$traits %>% dplyr::select(-taxon_name)
expect_error((traits_without_taxon_name %>% extract_trait("leaf_area"))$traits)
})

Expand Down

0 comments on commit 13088d2

Please sign in to comment.