Skip to content

Commit

Permalink
Fix: do not truncate expression names in emr_extract when tidy=TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
aviezerl committed Jan 2, 2024
1 parent d86f7cb commit cc131ca
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,7 +1,7 @@
Type: Package
Package: naryn
Title: Native Access Medical Record Retriever for High Yield Analytics
Version: 2.6.26
Version: 2.6.27
Authors@R: c(
person("Misha", "Hoichman", , "[email protected]", role = "aut"),
person("Aviezer", "Lifshitz", , "[email protected]", role = c("aut", "cre")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# naryn 2.6.27

* Fix: do not truncate expression names in `emr_extract` when `tidy=TRUE`.

# naryn 2.6.26

* Added `emr_time2posix`, `emr_posix2time`, `emr_time2char` and `emr_char2time` functions.
Expand Down
2 changes: 1 addition & 1 deletion src/NRExtract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ SEXP C_emr_extract(SEXP _exprs, SEXP _names, SEXP _tidy, SEXP _sort, SEXP _stime

for (unsigned iexpr = 0; iexpr < (unsigned)num_exprs; ++iexpr) {
if (isNull(_names))
SET_STRING_ELT(rexprs, iexpr, mkChar(get_bound_colname(CHAR(STRING_ELT(_exprs, iexpr))).c_str()));
SET_STRING_ELT(rexprs, iexpr, STRING_ELT(_exprs, iexpr));
else
SET_STRING_ELT(rexprs, iexpr, STRING_ELT(_names, iexpr));
}
Expand Down

0 comments on commit cc131ca

Please sign in to comment.