Merck / metalite.ae

An R package for standard adverse events analysis
http://merck.github.io/metalite.ae/
GNU General Public License v3.0
17 stars 4 forks source link

Undefined variable used in `tlf_ae_specific_subgroup()` #152

Closed nanxstats closed 1 year ago

nanxstats commented 1 year ago

Running R CMD check or lintr will say:

* 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

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:

Now I'm curious how this code works. Can you please look into this?