Skip to content

Commit

Permalink
use queue for recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Sep 30, 2024
1 parent 20c380f commit 112a03b
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 84 deletions.
1 change: 1 addition & 0 deletions R/aaa.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# global variables
the <- new.env(parent = emptyenv())
the$paths <- new.env(parent = emptyenv())

# detect if we're running on CI
ci <- function() {
Expand Down
3 changes: 1 addition & 2 deletions R/call.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ renv_call_expect <- function(node, package, methods) {

}

renv_call_normalize <- function(node, stack) {
renv_call_normalize <- function(node) {

# check for magrittr pipe -- if this part of the expression is
# being piped into, then we need to munge the call
ispipe <- renv_call_matches(node, names = c("%>%", "%T>%", "%<>%"))

if (!ispipe)
return(node)

Expand Down
Loading

0 comments on commit 112a03b

Please sign in to comment.