search for: extractor_us

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

Did you mean: extractor_used
2025 Jan 23
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...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 <- utils::getParseText(x, ppi) extractor_used <- vapply(placeholder_expressions, function(src) { toplevel <- parse(text = paste("PLACEHOLDER |> ", src))[[1]][[1]] identical(toplevel, quote(`$`)) || identical(toplevel, quote(`[`)) || identical(toplevel, quote(`[[`)) }, FALSE) Alternatively, we may find the first chil...
2025 Jan 23
2
Depends: R (>= 4.1) for packages that use |> and \(...)
...t 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 <- utils::getParseText(x, ppi) > extractor_used <- vapply(placeholder_expressions, function(src) { > toplevel <- parse(text = paste("PLACEHOLDER |> ", src))[[1]][[1]] > identical(toplevel, quote(`$`)) || > identical(toplevel, quote(`[`)) || > identical(toplevel, quote(`[[`)) > }, FALSE) > Alternative...
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