Comments (3)
That's by design, bare formulas are not treated as quosures anymore. I'll look into updating purrr.
from rlang.
Ok, then the docs for ?eval_tidy
are misleading, as they're shot-through with the word "formula". They also claim
eval_tidy_rhs
evaluates the RHS of a formula andeval_tidy_lhs()
evaluates the LHS.eval_tidy()
is a shortcut foreval_tidy_rhs()
since that is what you most commonly need.
which is not true, as the eval_tidy_*
forms turn the respective half into a quosure, which eval_tidy
doesn't:
rlang::eval_tidy_lhs(1 + 2 ~ 3 + 4)
#> 3 ~ 3 + 4
#> <environment: 0x7f8a034fb630>
rlang::eval_tidy_rhs(1 + 2 ~ 3 + 4)
#> 1 + 2 ~ 7
#> <environment: 0x7f8a034fb630>
rlang::eval_tidy(1 + 2 ~ 3 + 4)
#> 1 + 2 ~ 3 + 4
#> <environment: 0x7f8a034fb630>
Really, I'm not sure what the purpose of the eval_tidy_*
versions is unless they're supposed to evaluate functions. Or maybe I'm just massively confused.
from rlang.
they will be removed and the tidyeval docs will be rewritten.
from rlang.
Related Issues (20)
- Remove `SET_ENCLOS()` usage
- Remove `PREXPR()` usage (as much as we can)
- `is_dictionarish(NULL)` should return `TRUE` HOT 2
- Incorrect error message when trying to subset `.env` outside of a data mask context
- add vector methods for whole and decimal numbers in `standalone-types-check.R` HOT 1
- FR: add `env` argument to `is_missing()` HOT 3
- Docs: Details for is_named() cuts off in the middle of the sentence
- Will using rlang::global_entrace() in production code incur a (significant) performance reduction? HOT 2
- Performance decrease in `check_dots_empty0()` and `check_dots_empty()` ? HOT 2
- `env_inherits()` returns `TRUE` if `env` and `ancestor` are identical HOT 2
- check_character() always permits NA values HOT 1
- Remove `LEVELS()` accessor HOT 1
- Remove usage of `RDEBUG()` and `SET_RDEBUG()`
- let `cnd_signal()` take `.frequency` arg
- add combination of `is_installed()` and `check_installed()` HOT 4
- `rlang::eval_tidy()` crashes R
- Minor `?env_unbind` issues: `inherit` example, undocumented behaviors
- `rlang_backtrace_on_error` should default to `full` in non-interactive environments HOT 2
- docs: unexpected line break in return value of defuse manual page
- dots_list() inconsistency with splicing and unnamed arguments in homonym check.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlang.