Skip to content

Commit

Permalink
fixed a minor mistake in error messages for checkFlowcode and updated…
Browse files Browse the repository at this point in the history
… documenteion for bulk to include all h0-h7 codes
  • Loading branch information
Bochtler committed Feb 15, 2024
1 parent 0add3e3 commit 279cf03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/ct_check_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ check_flowCode <- function(flow_direction, update, verbose) {
) |>
poorman::mutate(text = tolower(text))

rlang::arg_match(flow_direction, values = valid_codes$text, multiple = TRUE)
rlang::arg_match(flow_direction,
values = c(valid_codes$text,"everything"),
multiple = TRUE)


flow_direction <- valid_codes |>
Expand Down
4 changes: 3 additions & 1 deletion R/ct_get_bulk.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#' Possible values: 'goods' for trade in goods,
#' 'services' for trade in services. Default: 'goods'.
#' @param commodity_classification The trade classification scheme.
#' Possible values for goods: `c('HS','S1','S2','S3','S4','SS','B4','B5')`;
#' Possible values for goods:
#' `c('HS','H0','H1','H2','H3','H4','H5','H6')`and
#' `c(S1','S2','S3','S4','SS','B4','B5')`;
#' for services: `c('EB02','EB10','EB10S','EB')`. Default: 'HS'.
#' @param reporter Reporter ISO3 code(s), `everything` or `all_countries`.
#' See `comtradr::country_codes` or `comtradr::ct_get_ref_table('reporter')`
Expand Down
3 changes: 2 additions & 1 deletion man/ct_get_bulk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 279cf03

Please sign in to comment.