search for: grandparent_express

Displaying 3 results from an estimated 3 matches for "grandparent_express".

2025 Jan 23
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...> the rhs of a forward pipe |> expression as the first argument in an >> extraction call, such as _$coef. More generally, it can be used as >> the head of a chain of extractions, such as _$coef[[2]]. I think it might be possible to parse(text = paste('PLACEHOLDER |>', grandparent_expression)) and then look at the top-level function in the call, but that feels quite fragile: x <- utils::getParseData(parse(f, keep.source = TRUE)) i <- x$token %in% "PLACEHOLDER" pi <- x[i, "parent"] ppi <- x[x$id %in% pi, "parent"] placeholder_expressions &lt...
2025 Jan 23
2
Depends: R (>= 4.1) for packages that use |> and \(...)
...forward pipe |> expression as the first argument in an >>> extraction call, such as _$coef. More generally, it can be used as >>> the head of a chain of extractions, such as _$coef[[2]]. > I think it might be possible to parse(text = paste('PLACEHOLDER |>', > grandparent_expression)) and then look at the top-level function in the > call, but that feels quite fragile: > x <- utils::getParseData(parse(f, keep.source = TRUE)) > i <- x$token %in% "PLACEHOLDER" > pi <- x[i, "parent"] > ppi <- x[x$id %in% pi, "parent"] &g...
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
Hello all, Would packages using the underscore placeholder with the native pipe need to also depend on R >= 4.2.0? There appear to be a number, modifying Ivan's GitHub search: https://github.com/search?q=org%3Acran+path%3A%2F%5B.%5D%5BRr%5Dd%3F%24%2F+%2F%5Cs%5C%7C%3E%5Cs.*%3D%5Cs%3F_%2F&type=code Regards, Ian ____ Ian Farm Laboratory Manager, The Agroecology Lab University of Maine