Skip to content

Commit

Permalink
remove unnecessary(?) use of tail()
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneoberman committed Jul 25, 2024
1 parent e34a1b5 commit 82522e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_trace.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ plot_trace <- function(data, vrb = "all") {
# select variable to plot from list of imputed variables
vrb <- rlang::enexpr(vrb)
if (is.call(vrb))
vrb <- as.character(vrb) |> utils::tail(-1)
vrb <- as.character(vrb)[-1]
if (is.symbol(vrb))
vrb <- as.character(vrb)

Expand Down

0 comments on commit 82522e4

Please sign in to comment.