Skip to content

Commit

Permalink
Fix bug in getReportInstancesBulk
Browse files Browse the repository at this point in the history
  • Loading branch information
eaurele committed Aug 8, 2019
1 parent 177253e commit 8cb8553
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion R/CastorData.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cb8553

Please sign in to comment.