diff --git a/DESCRIPTION b/DESCRIPTION index 3b14381..5e1e78b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: castoRedc Title: Wraps Castor API for easy data access -Version: 1.0.1 +Version: 1.0.2 Authors@R: c( person("Thomas", "Johnson", role = c("aut")), person("Aurele", "Morvan", email = "aurele.morvan@castoredc.com", diff --git a/NEWS.md b/NEWS.md index 469b0a9..98b9458 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# castoRedc 1.0.2 + +* Fix bug in `getReportInstancesBulk`. + # castoRedc 1.0.1 * Fix bug in `getReportInstanceMetadata` that caused an error when renaming result dataset. diff --git a/R/CastorData.R b/R/CastorData.R index 5581edb..6f1a0be 100644 --- a/R/CastorData.R +++ b/R/CastorData.R @@ -249,7 +249,7 @@ CastorData <- R6::R6Class("CastorData", report_data <- rename_at(report_data, vars(-Record_ID, -report_inst_name, -report_name, -created_on), - ~id_to_field_name_[.]) + ~unlist(id_to_field_name_)[.]) attr(report_data, "report_inst_name_to_id") <- report_inst_name_to_id attr(report_data, "report_fields") <- report_fields