Skip to content

Commit

Permalink
update to new syntax from corella
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestgate committed Dec 5, 2024
1 parent 3f5f1f3 commit c4113ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ importFrom(cli,cli_h3)
importFrom(cli,cli_inform)
importFrom(cli,cli_progress_step)
importFrom(cli,cli_progress_update)
importFrom(corella,check_occurrences)
importFrom(corella,check_dataset)
importFrom(curl,form_data)
importFrom(curl,form_file)
importFrom(dplyr,bind_rows)
Expand Down
4 changes: 2 additions & 2 deletions R/check_archive.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ check_archive <- function(x = "data"){
}

#' Internal function to check all files
#' @importFrom corella check_occurrences
#' @importFrom corella check_dataset
#' @importFrom paperbark check_eml
#' @importFrom purrr map
#' @importFrom readr read_csv
Expand All @@ -37,7 +37,7 @@ check_files <- function(filenames){
\(a){
switch(a,
"occurrences.csv" = {read_csv(a) |>
check_occurrences()},
check_dataset()},
"meta.xml" = {check_eml(a)},
"eml.xml" = {check_eml(a)}
)
Expand Down

0 comments on commit c4113ad

Please sign in to comment.