Skip to content

Commit

Permalink
Fix introduced errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 8, 2024
1 parent 7d537e3 commit 44c5130
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions R/piping.R
Original file line number Diff line number Diff line change
Expand Up @@ -373,15 +373,16 @@
# Capture empty arguments (rxode2#688)
warning("empty argument ignored")
return(NULL)
} else if (is.symbol(.quoted) &&
identical(.quoted, quote(`diag`))) {
.quoted <- str2lang("~diag()")
} else if (length(.quoted) == 1) {
if (identical(.quoted, quote(`diag`))) {
.quoted <- str2lang("~diag()")
} else {
.bracket[i] <- TRUE
assign(".bracket", .bracket, envir=.env)
}
} else if (length(.quoted) >= 1 &&
identical(.quoted[[1]], quote(`diag`))) {
.quoted <- as.call(c(list(quote(`~`)), .quoted))
} else if (length(.quoted) == 1) {
.bracket[i] <- TRUE
assign(".bracket", .bracket, envir=.env)
} else if (identical(.quoted[[1]], quote(`diag`))) {

} else if (identical(.quoted[[1]], quote(`{`)) ||
Expand Down

0 comments on commit 44c5130

Please sign in to comment.