rlang
rlang copied to clipboard
Low-level API for programming with R
For https://github.com/tidyverse/dplyr/pull/6443
Since there could be 1000s and entracing is slow.
- Cleaned up the style in `r_lgl_which()` - Lifted the `na_propagate` branch out of the for loop - Simplified the if condition, especially in the `na_propagate = FALSE` case -...
Used like `use_compat("r-lib/rlang", "purrr")` - Doesn't overwrite by default - Requires `r-lib/rlang` to have a `main` branch. This is where we download the source code from. - This is an...
``` r rlang::as_closure(seq.int)(1, 2) #> Error in (rlang::as_closure(seq.int))(1, 2): argument "by" is missing, with no default ``` Created on 2022-08-27 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1)
I think we should be able to get it somewhat reliably with something like this ```r unstructure
It seems that it would sometimes be useful to capture the set of acceptable values for an argument. This would save you having to duplicate them in the function body....
Hi Lionel, @lionel- I hope you're well. When running devtools::document on my package, in a new instance, I get the error message: ``` Error in load_imports(path) : The packages `BiocFileCache`,...
``` r f Error in `f()`: #> ! `x` must be a character vector, not NULL. ``` Created on 2022-07-26 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1) i.e. should this instead return...