ramses-antibiotics/ramses-package

Consistent data masking

Closed this issue · 1 comments

  • use .data$ for all dplyr functions other than select()
  • use quotation marks in select()
  • use tidyselect::all_of(c(...)) for select(-...)

Initial test conclusive on 600 lines of database.R with

  • x86_64-pc-linux-gnu 4.2.1, dplyr 1.0.9, tidyselect 1.1.2
  • x86_64-pc-linux-gnu 3.6.3, dplyr 1.0.10, tidyselect 1.2.0
  • x86_64-pc-linux-gnu 3.6.3, dplyr 1.0.10, tidyselect 1.2.0
  • x86_64-pc-linux-gnu r-devel, dplyr 1.0.10, tidyselect 1.2.0

38723c9