Skip to content

Commit

Permalink
fix error when wrap with I()
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 14, 2024
1 parent 3e505b5 commit ec82ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/align-link.R
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ AlignLinkProto <- ggproto("AlignLinkProto", AlignGg,
params[[self$arg]] <- lapply(x, function(link) {
if (inherits(link, "AsIs")) { # cannot use character
ans <- vec_as_location(
link,
unclass(link),
n = nobs,
missing = "error",
arg = self$arg,
Expand All @@ -339,7 +339,7 @@ AlignLinkProto <- ggproto("AlignLinkProto", AlignGg,
ans <- I(ans)
} else {
ans <- vec_as_location(
unclass(link),
link,
n = nobs,
names = self$labels,
missing = "error",
Expand Down

0 comments on commit ec82ced

Please sign in to comment.