Skip to content

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
pbchase committed Sep 14, 2022
2 parents a559cba + 1cfa113 commit c4293d2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: redcapcustodian
Type: Package
Title: System data cleaning for REDCap
Version: 1.3.1
Version: 1.3.2
Authors@R: c(
person("Philip", "Chase",
email = "[email protected]",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to the redcapcustodian package and its contained scripts wil
This project adheres to [Semantic Versioning](http://semver.org/).


## [1.3.2] - 2022-09-14
### Changed
- Specify package for na.exclude() (Philip Chase)
- escape . to treat as literal character instead of wildcard in gsub statements (Kyle Chesney)


## [1.3.1] - 2022-08-30
### Added
- Remove remants of the site concept (Philip Chase)
Expand Down
2 changes: 1 addition & 1 deletion R/dataset_diff.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dataset_diff <- function(source,
dplyr::anti_join(target) %>%
dplyr::inner_join(target, by=source_pk) %>%
dplyr::select(dplyr::any_of(target_pk), dplyr::any_of(names(source)), dplyr::ends_with(".x")) %>%
dplyr::rename_with(., ~ gsub(".x", "", .x), dplyr::ends_with(".x"))
dplyr::rename_with(., ~ gsub("\\.x", "", .x), dplyr::ends_with(".x"))

ids_of_update_records <- update_records %>% dplyr::pull({{target_pk}})

Expand Down
2 changes: 1 addition & 1 deletion R/read_email.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ get_bad_emails_from_individual_emails <- function(username,
mRpostman::sent_since(date_char = format(messages_since_date, format = "%d-%b-%Y"))
)
) %>%
na.exclude()
stats::na.exclude()

patterns <- c(
"Original-Recipient: rfc822;.*",
Expand Down
2 changes: 1 addition & 1 deletion R/write_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ sync_table_2 <- function(
dplyr::anti_join(target) %>%
dplyr::inner_join(target, by=source_pk) %>%
dplyr::select(dplyr::any_of(target_pk), dplyr::any_of(names(source)), dplyr::ends_with(".x")) %>%
dplyr::rename_with(., ~ gsub(".x", "", .x), dplyr::ends_with(".x"))
dplyr::rename_with(., ~ gsub("\\.x", "", .x), dplyr::ends_with(".x"))

ids_of_update_records <- update_records %>% dplyr::pull({{target_pk}})

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.1
1.3.2

0 comments on commit c4293d2

Please sign in to comment.