From acb1e649d14642b25e61002bd022e3e0ee2aa4c7 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 5 Oct 2026 17:15:54 -0400 Subject: [PATCH] fix(check): declare R6 self/super as globalVariables Avoids 'no visible binding for global variable' notes from R CMD check for the R6 methods in btw_compact_reporter(). --- R/zzz.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/zzz.R b/R/zzz.R index f8f507b1..497c5417 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -29,4 +29,6 @@ if (getRversion() < "4.3.0") { ) } -utils::globalVariables("private") +# R6 binds `self` and `super` at runtime; declare them so codetools doesn't +# flag them as global variables in R CMD check. +utils::globalVariables(c("private", "self", "super"))