Skip to content

Commit 5d32cf8

Browse files
committed
avoid spaces around ^
1 parent 49621d9 commit 5d32cf8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

R/style_guides.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,5 @@ specify_math_token_spacing <-
321321
#' )
322322
#' @export
323323
tidyverse_math_token_spacing <- function() {
324-
specify_math_token_spacing(one = c("'+'", "'-'", "'*'", "'/'", "'^'"))
324+
specify_math_token_spacing(one = math_token_lo)
325325
}

R/token-define.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ token <- tribble(
2727
)
2828

2929
math_token <- token$token[token$class == "math"]
30+
math_token_lo <- setdiff(math_token, "^")
3031
logical_token <- token$token[token$class == "logical"]
3132
left_assignment_token <- token$token[token$class == "assign_left"]
3233
right_assignment_token <- token$token[token$class == "assign_right"]

0 commit comments

Comments
 (0)