* checking R code for possible problems ... NOTE
tlf_ae_specific_subgroup: no visible binding for global variable
‘n_group’
tlf_ae_specific_subgroup: no visible binding for global variable
‘col_tbl_between’
tlf_ae_specific_subgroup: no visible binding for global variable
‘n_comparisons’
Undefined global functions or variables:
col_tbl_between n_comparisons n_group
Running
R CMD check
or lintr will say:The involved lines are introduced in #150:
https://github.com/Merck/metalite.ae/blob/45aba695bb090dec0e87f6df78822a0accefd90f/R/tlf_ae_specific_subgroup.R#L170-L182
It looks like:
n_group
,col_tbl_between
, andn_comparisons
are variables not previously defined in this function.tapply()
does not seem to support non-standard evaluation (NSE).with()
context for these variables.Now I'm curious how this code works. Can you please look into this?