Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #77 from nlmixr2/76-cannot-keep-a-logical-column
Browse files Browse the repository at this point in the history
76 cannot keep a logical column
  • Loading branch information
mattfidler authored Dec 4, 2023
2 parents 6a50c81 + 0785022 commit 7d18fe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/etTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2128,8 +2128,13 @@ List etTransParse(List inData, List mv, bool addCmt=false,
curType[1] = R_NilValue;
inDataFK[j] = cur;
inDataFKL[j] = curType;
} else if (TYPEOF(cur) == LGLSXP) {
curType[0] = IntegerVector::create(5);
curType[1] = R_NilValue;
inDataFK[j] = as<NumericVector>(cur);
inDataFKL[j] = curType;
} else {
stop("the columns that are kept must be either a string, a factor, an integer number, or a real number");
stop(_("the columns that are kept must be either a logical, string, a factor, an integer number, or a real number"));
}
}
int maxItemsPerId = 0;
Expand Down

0 comments on commit 7d18fe0

Please sign in to comment.