Skip to content

Commit

Permalink
bugfix for create datastore script
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLBaker committed Dec 21, 2023
1 parent edde7f6 commit c9a4884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/datastore_interactions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c9a4884

Please sign in to comment.