From c2be840bd6353a028d71d737c997b353c03b31cd Mon Sep 17 00:00:00 2001 From: Cole Beck Date: Thu, 16 Jul 2026 11:47:59 -0500 Subject: [PATCH] API correctly returns forms_export now --- R/exportUserRoles.R | 8 -------- 1 file changed, 8 deletions(-) diff --git a/R/exportUserRoles.R b/R/exportUserRoles.R index 8cb88512..aa916ccd 100644 --- a/R/exportUserRoles.R +++ b/R/exportUserRoles.R @@ -49,14 +49,6 @@ exportUserRoles.redcapApiConnection <- function(rcon, if (nrow(UserRole) == 0) return(redcapUserRoleStructure(rcon$version())) - # The API returns the forms_export string twice. We reduce it to once here - temp <- UserRole$forms_export - temp <- strsplit(temp, ",") - temp <- unlist(temp) - temp <- temp[!duplicated(temp)] - temp <- paste0(temp, collapse = ",") - UserRole$forms_export <- temp - ################################################################### # Format UserRole properties ####