Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
- rebuilt the lite data layers and that solved problems locally at least
  • Loading branch information
ehwenk committed Nov 19, 2024
1 parent c3e7bf4 commit 7282763
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion data-raw/create_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dataset_id <- c(unique(austraits_5.0.0$traits$dataset_id) %>% sample(5))


datasets <- c("Falster_2003", "Falster_2005_1", "Falster_2005_2",
"", "Crous_2019", "Buckton_2019", "Kooyman_2011", "Bloomfield_2018",
"Crous_2013", "Crous_2019", "Buckton_2019", "Kooyman_2011", "Bloomfield_2018",
"Wright_2019", "Westoby_2014", "Vesk_2019", "Leigh_2003", "Prior_2003",
"Prior_2016", "Choat_2006", "Choat_2012", "ABRS_1981", "Cernusak_2006", "Yang_2023")

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-extract_.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test_that("extracted dataset has some structure as austraits build", {
expect_no_error(trait_subset <- extract_trait(austraits_5.0.0_lite, trait_names = trait_name))
test_database_structure(subset, dataset_id = dataset_id)

expect_s3_class(austraits_5.0.0_lite, "austraits")
expect_s3_class(austraits_5.0.0_lite, "traits.build")
expect_equal(length(subset), length(austraits_5.0.0_lite))
expect_equal(sort(names(subset)), sort(names(austraits_5.0.0_lite)))

Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-join_.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
not_supported_austraits <- list(austraits_3.0.2_lite,
austraits_4.2.0_lite)

class(austraits_5.0.0_lite) <- c("traits.build")

test_join_error <- function(austraits){
test_that("old versions will complain", {
expect_error(join_location_coordinates(austraits))
Expand Down

0 comments on commit 7282763

Please sign in to comment.