Skip to content

Commit

Permalink
Update data.table.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Nj221102 authored May 9, 2024
1 parent 06841af commit 0003f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/data.table.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ patterns = function(...) NULL
measure = function(...) NULL
# These are exported to prevent NOTEs from R CMD check, and checkUsage via compiler.
# But also exporting them makes it clear (to users and other packages) that data.table uses these as symbols.
# And NULL makes it clear (to the R's mask check on loading) that they're variables not functions.
# The use of NULL during loading signals to R's mask check that these entities aren't defined with specific behaviors.
# utils::globalVariables(c(".SD",".N")) was tried as well, but exporting seems better.
# So even though .BY doesn't appear in this file, it should still be NULL here and exported because it's
# defined in SDenv and can be used by users.
Expand Down

0 comments on commit 0003f9a

Please sign in to comment.