Skip to content

Commit

Permalink
Update to run
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalster committed Nov 15, 2023
1 parent b8dd97a commit 1f418bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions tests/build/helper.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
requireNamespace("testthat", quietly = TRUE)




library(traits.build)
source("../testthat/functions.R")
source("../functions.R")

root.dir <- rprojroot::find_package_root_file()
source(file.path(root.dir, "R/custom_R_code.R"))
Expand Down
6 changes: 3 additions & 3 deletions tests/build/test-axrxiv_constancy.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ build_comparison_set <- function(root.dir, definitions, unit_conversions, schema
# Tomlinson_2019 - complete taxonomic changes

f_build <- function(x, definitions, unit_conversions, schema, resource_metadata, taxon_list) {
config <- dataset_configure(file.path(root.dir, "data", x, "metadata.yml"), definitions, unit_conversions)
data <- dataset_process(file.path(root.dir, "data", x, "data.csv"), config, schema, resource_metadata)
data <- build_update_taxonomy(data, taxon_list)
config <- dataset_configure(file.path(root.dir, "data", x, "metadata.yml"), definitions)
data <- dataset_process(file.path(root.dir, "data", x, "data.csv"), config, schema, resource_metadata, unit_conversions)
data <- dataset_update_taxonomy(data, taxon_list)

data
}
Expand Down

0 comments on commit 1f418bc

Please sign in to comment.