From 6dfc20e95112eeb48eeb6c806781966e3063e5a7 Mon Sep 17 00:00:00 2001 From: amannj Date: Sun, 29 Nov 2020 20:12:42 +0100 Subject: [PATCH 1/3] Add comm_code option AG6 as available for HS classification. --- R/ct_search.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/ct_search.R b/R/ct_search.R index 4c4e149..4fa4f37 100644 --- a/R/ct_search.R +++ b/R/ct_search.R @@ -548,7 +548,7 @@ is_year_month <- function(x) { #' #' @noRd codes_as_ints <- function(char_vect) { - if (any(tolower(char_vect) %in% c("all", "total", "ag1", "ag2", "ag3", "ag4", "ag5"))) { + if (any(tolower(char_vect) %in% c("all", "total", "ag1", "ag2", "ag3", "ag4", "ag5", "ag6"))) { return(TRUE) } as_ints <- suppressWarnings(as.integer(char_vect)) From 847fa11b9be8ac66c23a5141db5c0b3041b47c7a Mon Sep 17 00:00:00 2001 From: amannj Date: Mon, 30 Nov 2020 10:40:06 +0100 Subject: [PATCH 2/3] new contributor added --- DESCRIPTION | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index edfe080..9f2d0bb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -13,7 +13,8 @@ Authors@R: c(person("Chris", "Muir", role = "rev", comment = c(ORCID = "0000-0002-3092-3493", "Rafael reviewed the package for rOpenSci, - see https://github.com/ropensci/onboarding/issues/141"))) + see https://github.com/ropensci/onboarding/issues/141")), + person("Juergen", "Amann", role=c("ctb"))) Description: Interface with and extract data from the United Nations Comtrade API . Comtrade provides country level shipping data for a variety of commodities, these functions allow for easy API query From d89167fede80901e0e9066e2bd123b426e40ae73 Mon Sep 17 00:00:00 2001 From: amannj Date: Mon, 30 Nov 2020 10:46:28 +0100 Subject: [PATCH 3/3] new featur: support for commodity code `ag6` added to `ct_search()` --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index d445efb..262ffc2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ comtradr 0.2.2.09000 ==================== +## NEW FEATURES + +* Modifications to `ct_search()` to add support for commodity code `ag6` ([#30](https://github.com/ropensci/comtradr/pull/30)) + ## BUG FIXES * Passing an API token string to `ct_register_token()` now properly bumps the hourly rate limit up to 10,000