Correct stop to abort
This commit is contained in:
parent
1cf130665c
commit
5edf0c7700
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ theme_reach <- function(
|
||||||
# - add facet theming
|
# - add facet theming
|
||||||
|
|
||||||
if (!initiative %in% c("reach", "default"))
|
if (!initiative %in% c("reach", "default"))
|
||||||
rlang::stop(
|
rlang::abort(
|
||||||
c(
|
c(
|
||||||
paste0("There is no initiative '", initiative, " to be used with theme_reach()."),
|
paste0("There is no initiative '", initiative, " to be used with theme_reach()."),
|
||||||
"i" = paste0("initiative should be either 'reach', 'agora' or 'default'")
|
"i" = paste0("initiative should be either 'reach', 'agora' or 'default'")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue