Skip to content

Commit

Permalink
apply fix everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Dec 17, 2024
1 parent 81036a1 commit 4847511
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/tm_layers_lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ tm_lines = function(col = tm_const(),
}

# unused arguments: typos?
unused = setdiff(names(args), v3_only("tm_lines"))
unused = setdiff(names(args), c(v3_only("tm_lines"), "called_from"))

if (length(unused)) {
message_layer_unused_args(layer_fun, unused)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_layers_raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ tm_raster = function(col = tm_vars(),
}

# unused arguments: typos?
unused = setdiff(names(args), v3_only("tm_raster"))
unused = setdiff(names(args), c(v3_only("tm_raster"), "called_from"))

if (length(unused)) {
message_layer_unused_args(layer_fun, unused)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_layers_rgb.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tm_rgb = function(col = tm_vars(n = 3, multivariate = TRUE),
}

# unused arguments: typos?
unused = setdiff(names(args), v3_only("tm_rgb"))
unused = setdiff(names(args), c(v3_only("tm_rgb"), "called_from"))

if (length(unused)) {
message_layer_unused_args(layer_fun, unused)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_layers_symbols.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ tm_symbols = function(size = tm_const(),
}

# unused arguments: typos?
unused = setdiff(names(args), v3_only("tm_symbols"))
unused = setdiff(names(args), c(v3_only("tm_symbols"), "called_from"))

if (length(unused)) {
layer_fun = if ("called_from" %in% names(args)) {
Expand Down
2 changes: 1 addition & 1 deletion R/tm_layers_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ tm_text = function(text = tm_const(),
}

# unused arguments: typos?
unused = setdiff(names(args), v3_only("tm_text"))
unused = setdiff(names(args), c(v3_only("tm_text"), "called_from"))

if (length(unused)) {
message_layer_unused_args(layer_fun, unused)
Expand Down

0 comments on commit 4847511

Please sign in to comment.