From c9a4884c7d2fcbf5215aad8d5d6663aaf8e089f5 Mon Sep 17 00:00:00 2001 From: Rob Baker Date: Thu, 21 Dec 2023 13:20:02 -0700 Subject: [PATCH 1/3] bugfix for create datastore script --- R/datastore_interactions.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/datastore_interactions.R b/R/datastore_interactions.R index 2bbe6e0..2bd5598 100644 --- a/R/datastore_interactions.R +++ b/R/datastore_interactions.R @@ -76,8 +76,7 @@ create_datastore_script <- function(owner, #search for title in title list, if force == false: if (force == FALSE) { if (length(items) > 0) { - matches <- items %>% filter(stringr::str_detect(items$title, - new_ref_title)) + matches <- dplyr::filter(items, grepl(new_ref_title, title)) if (length(seq_along(matches$title) > 0)) { cat("One or more DataStore references with title containing: ", new_ref_title, From b1f71a926303035869199c453f200634435a302e Mon Sep 17 00:00:00 2001 From: Rob Baker Date: Thu, 21 Dec 2023 13:22:27 -0700 Subject: [PATCH 2/3] add updates: create_datastore_script bugfix --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index 2774166..3e1c651 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ # QC kit v0.1.2 2023-12-18 +* Bugfix for `create_datastore_script()` * Added automated build check and pkgdown github pages builds via github actions * Code cleanup via linter suggests * Added warning about turning off VPN for the `covert_utm_to_ll()` documentation From 9e3aeb764900b1f973192e944c001cf2e2d96314 Mon Sep 17 00:00:00 2001 From: Rob Baker Date: Thu, 21 Dec 2023 13:32:10 -0700 Subject: [PATCH 3/3] update: increment version number --- DESCRIPTION | 2 +- NEWS.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3dd62dd..03a2285 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: QCkit Type: Package Title: NPS Inventory and Monitoring Quality Control Toolkit -Version: 0.1.2 +Version: 0.1.3 Authors@R: c( person(given = "Robert", family = "Baker", diff --git a/NEWS.md b/NEWS.md index 3e1c651..a31acc8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# QC kit v0.1.2 +# QC kit v0.1.3 2023-12-18 * Bugfix for `create_datastore_script()` * Added automated build check and pkgdown github pages builds via github actions @@ -7,7 +7,7 @@ * Moved `convert_datetime_format()` from DPchecker to QCkit * Added funtion `fix_utc_offset()` -# QCkit 0.1.1 "Automated Shuttle Pilot" +# QCkit 0.1.2 "Automated Shuttle Pilot" 2023-11-20 * Added the function `create_datastore_scipt()`, which given a username and repo for GitHub will generate a draft Script Reference on DataStore based on the information found in the latest Release on GitHub.