anthonynorth / roxyglobals

Generate utils::globalVariables() from roxygen tags
Other
52 stars 0 forks source link

@autoglobal includes globals in assignment statements #7

Closed anthonynorth closed 1 year ago

anthonynorth commented 1 year ago

@autoglobal adds globals from assignment statements to globals.R. This is certainly unwanted and prevents rcmdcheck from flagging bugs. Example:

#' @autoglobal
my_func <- function() {
  # doesnt_exist will be added to utils::globals()
  my_variable <- doesnt_exist
}

related #1