From cedf9b8b74a34a87b55935a154ef8227bf6c6ccf Mon Sep 17 00:00:00 2001 From: jubilee2 Date: Tue, 6 Jan 2026 19:19:37 +0000 Subject: [PATCH 1/2] Update new fields to redcapUserRoleStructure --- NEWS.md | 3 ++- R/redcapDataStructure.R | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index f600589d..941acc68 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,8 @@ # redcapAPI (development version) -* `exportDags`, `exportFieldNames`, `exportProjectInformation`, `exportReportsTyped`, `importDags`, `writeDataForImport`, and `exportRecordsTYped` now have a `csv_delimiter` parameter to control delimiter utilized. +* `exportDags`, `exportFieldNames`, `exportProjectInformation`, `exportReportsTyped`, `importDags`, `writeDataForImport`, and `exportRecordsTyped` now have a `csv_delimiter` parameter to control delimiter utilized. * `importMetaData` bug fix when given duplicate names to exit and warn user properly. +* Added `alerts`, `api_modules`, and `data_quality_resolution` to `redcapUserRoleStructure`. ## DEPRECATION NOTICES diff --git a/R/redcapDataStructure.R b/R/redcapDataStructure.R index 26855546..0d5796d3 100644 --- a/R/redcapDataStructure.R +++ b/R/redcapDataStructure.R @@ -401,6 +401,7 @@ redcapUserRoleStructure <- function(version) data.frame(unique_role_name = character(0), role_label = character(0), design = character(0), + alerts = character(0), user_rights = character(0), data_access_groups = character(0), # data_export = character(0), @@ -415,8 +416,10 @@ redcapUserRoleStructure <- function(version) file_repository = character(0), data_quality_create = character(0), data_quality_execute = character(0), + data_quality_resolution = character(0), api_export = character(0), api_import = character(0), + api_modules = if(is.null(version) || utils::compareVersion(version, "14.0.3") < 0) NULL else character(0), mobile_app = character(0), mobile_app_download_data = character(0), record_create = character(0), From 390a0d23cbde51f15f04f6e7bb3c1ef9bd7df36e Mon Sep 17 00:00:00 2001 From: Shawn Garbett Date: Tue, 6 Jan 2026 14:31:05 -0600 Subject: [PATCH 2/2] Update NEWS.md Updated news to recommended order. --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 941acc68..3ac722e8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,7 +2,7 @@ * `exportDags`, `exportFieldNames`, `exportProjectInformation`, `exportReportsTyped`, `importDags`, `writeDataForImport`, and `exportRecordsTyped` now have a `csv_delimiter` parameter to control delimiter utilized. * `importMetaData` bug fix when given duplicate names to exit and warn user properly. -* Added `alerts`, `api_modules`, and `data_quality_resolution` to `redcapUserRoleStructure`. +* `redcapUserRoleStructure` allows new `alerts`, `api_modules`, and `data_quality_resolution` attributes. ## DEPRECATION NOTICES