Skip to content

Commit

Permalink
add parens
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Chirico <michaelchirico4@gmail.com>
  • Loading branch information
tdhock and MichaelChirico authored Aug 1, 2024
1 parent 0a640f2 commit a91541f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmelt.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ SEXP getvarcols(SEXP DT, SEXP dtnames, Rboolean varfactor, Rboolean verbose, str
if (data->lvalues==1 && length(VECTOR_ELT(data->valuecols, 0)) != data->lmax)
error(_("Internal error: fmelt.c:getvarcols %d %d"), length(VECTOR_ELT(data->valuecols, 0)), data->lmax); // # nocov
if (isNull(data->variable_table)) {
if (data->lvalues == 1 & data->measure_is_list) {
if ((data->lvalues == 1) & data->measure_is_list) {
warning("measure.vars is a list with length=1, which according to documentation should return integer indices in the variable column, but currently returns character column names. To increase consistency in the next release, we plan to change variable to integer, so users who were relying on this behavior should change measure.vars=list('col_name') (output variable is column name, will be column index/integer) to measure.vars='col_name' (variable is column name before and after the planned change).");
}
if (!varfactor) {
Expand Down

0 comments on commit a91541f

Please sign in to comment.