rlang
rlang copied to clipboard
Low-level API for programming with R
```R dot_names(a = 1, b = 2, 3) #> [1] "a" "b" NA ``` It's sometimes useful to capture the names of dotted arguments without evaluating them for generating error...
Currently: ```R > str(quo(x)) language ~x - attr(*, ".Environment")= ```
Linked to https://github.com/r-lib/rlang/issues/906 for `!!!` arguments. ```r fn hop #> hop ```
This is undocumented as far as I can tell, and might be a bug ? ``` foo bar #> [1] "baz" ```
To avoid repeated side effects when an argument is defused multiple times: ```r my_function % summarise("{{ what }}" := mean({{ what }})) } ```
e.g. ```R obj_type(1:10) #> int obj_desc(1:10) #> int [10] obj_friendly_type(1:10) #> an integer vector ```
- task callbacks - hooks and events - deferred expressions (exits) Needs to wrap 4 actions: append, prepend, replace, get. Appending and prepending might be handled with `push_` prefixed verbs...
- Updated typo in docs
Originally incorrectly created in https://github.com/r-lib/vctrs/pull/1594. ``` r set.seed(1) r_lgl_which 5 true_10 210.5ms 224.6ms 4.45 38.14MB 0 #> 6 true_1 106.5ms 109.1ms 9.14 3.82MB 0 # This PR #> # A...