Skip to content

Commit fed4876

Browse files
committed
Merge branch 'release/1.22.1'
2 parents d9d692a + 7c237fd commit fed4876

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

.github/workflows/run-tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
container:
14-
image: ghcr.io/ctsit/rstudio-ci:4.2.1
14+
image: ghcr.io/ctsit/rstudio-ci:4.3.3
1515

1616
env:
1717
CI: "TRUE"

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: redcapcustodian
22
Type: Package
33
Title: Data automation for R-centric workflows with a nod towards REDCap
4-
Version: 1.22.0
4+
Version: 1.22.1
55
Authors@R: c(
66
person("Philip", "Chase",
77
email = "pbc@ufl.edu",
@@ -56,7 +56,7 @@ Imports:
5656
tidyr,
5757
vctrs,
5858
jsonlite,
59-
writexl
59+
openxlsx
6060
Suggests:
6161
RSQLite,
6262
digest,

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN R -e "install.packages(c( \
2525
'rjson', \
2626
'sendmailR', \
2727
'sqldf', \
28-
'writexl', \
28+
'openxlsx', \
2929
'kableExtra' \
3030
))"
3131

NAMESPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ export(write_info_log_entry)
6161
export(write_summary_metrics)
6262
export(write_to_sql_db)
6363
importFrom(magrittr,"%>%")
64+
importFrom(openxlsx,write.xlsx)
6465
importFrom(rlang,.data)
6566
importFrom(sendmailR,"sendmail")
66-
importFrom(writexl,write_xlsx)

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# redcapcustodian 1.22.1 (released 2024-04-23)
2+
- Update run-tests.yaml to use rstudio-ci:4.3.3 (@pbchase, #157)
3+
- Switch send_mail() to use openxlsx (@ljwoodley, #152, #157)
4+
15
# redcapcustodian 1.22.0 (released 2024-03-26)
26
- Implement hacky fix for tlmgr 2023 being unable to install packages (@ChemiKyle, #156)
37
- Fix bug that prevented email_body from being included in email (@ljwoodley, @ChemiKyle, #155)

R/logging.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ write_info_log_entry <- function(conn, target_db_name, table_written = NULL, df,
656656
#'
657657
#' }
658658
#' @importFrom sendmailR "sendmail"
659-
#' @importFrom writexl write_xlsx
659+
#' @importFrom openxlsx write.xlsx
660660
#' @export
661661
send_email <-
662662
function(email_body,
@@ -711,7 +711,7 @@ send_email <-
711711
if (file_extension == "csv") {
712712
readr::write_csv(df_to_email[[i]], file_fullpath, ...)
713713
} else if (file_extension == "xlsx") {
714-
writexl::write_xlsx(df_to_email[[i]], file_fullpath, ...)
714+
openxlsx::write.xlsx(df_to_email[[i]], file_fullpath, ...)
715715
} else {
716716
stop("Unsupported file format. Use 'csv' or 'xlsx'.")
717717
}

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.22.0
1+
1.22.1

0 commit comments

Comments
 (0)