From 3c5a4f29358510641a3edeccbeba3e51278e45e2 Mon Sep 17 00:00:00 2001 From: Dave Slager Date: Sat, 15 Jun 2024 06:51:23 -0700 Subject: [PATCH 1/2] fix example --- R/load_taxonomic_resources.R | 3 ++- man/default_version.Rd | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/R/load_taxonomic_resources.R b/R/load_taxonomic_resources.R index b7b6dbc6..b63b4190 100644 --- a/R/load_taxonomic_resources.R +++ b/R/load_taxonomic_resources.R @@ -372,7 +372,8 @@ dataset_access_function <- #' version is specified. #' #' @return A character string representing the default version for stable data. -#' @example default_version() +#' @examples +#' default_version() #' #' @export diff --git a/man/default_version.Rd b/man/default_version.Rd index c0e7e100..86683968 100644 --- a/man/default_version.Rd +++ b/man/default_version.Rd @@ -13,3 +13,7 @@ A character string representing the default version for stable data. This function returns the default version for stable data, which is used when no version is specified. } +\examples{ +default_version() + +} From 4e95859128db23409ab326772503adbb9e2e58d0 Mon Sep 17 00:00:00 2001 From: Dave Slager Date: Sat, 15 Jun 2024 07:02:35 -0700 Subject: [PATCH 2/2] fix vignette paths --- vignettes/updating-taxon-names.Rmd | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/vignettes/updating-taxon-names.Rmd b/vignettes/updating-taxon-names.Rmd index 62a49cea..e3354ff9 100644 --- a/vignettes/updating-taxon-names.Rmd +++ b/vignettes/updating-taxon-names.Rmd @@ -44,18 +44,27 @@ util_kable_styling_html <- function(...) { my_kable_styling <- util_kable_styling_html match_taxa_documentation <- - readr::read_csv(here("inst", "extdata", "match_taxa_documentation.csv"), + readr::read_csv( + system.file( + file.path("extdata", "match_taxa_documentation.csv"), + package = "APCalign"), show_col_types = FALSE ) update_taxonomy_documentation <- - readr::read_csv(here("inst/", "extdata", "update_taxonomy_documentation.csv"), + readr::read_csv( + system.file( + file.path("extdata", "update_taxonomy_documentation.csv"), + package = "APCalign"), show_col_types = FALSE, skip = 1 ) APCalign_outputs_documentation <- - readr::read_csv(here("inst/", "extdata", "APCalign_outputs_documentation.csv"), + readr::read_csv( + system.file( + file.path("extdata", "APCalign_outputs_documentation.csv"), + package = "APCalign"), show_col_types = FALSE ) ```