Skip to content

Commit 28ea635

Browse files
Add variables used with NSE functions to globals
This causes R CMD Check notes to vanish.
1 parent faedc13 commit 28ea635

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

R/styler.R

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44
#' according to a style guide. See the INDEX for more information.
55
#'
66
"_PACKAGE"
7-
if (getRversion() >= "2.15.1") utils::globalVariables(c("."))
7+
if (getRversion() >= "2.15.1") {
8+
utils::globalVariables(c(
9+
".",
10+
"pd", "pd_nested", "pd_flat", "flattened_pd",
11+
"line1", "line2", "col1", "col2",
12+
"terminal", "text", "short",
13+
"spaces", "lag_spaces",
14+
"newlines", "lag_newlines",
15+
NULL
16+
))
17+
}

0 commit comments

Comments
 (0)