Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove speculation about the end of the walrus. #1631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions man/rmd/glue-operators.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ mtcars %>% my_mean(cyl * am, name = "mean_cyl_am")
```


## What's the deal with `:=`?

Name injection in dynamic dots was originally implemented with `:=` instead of `=` to allow complex expressions on the LHS:

```{r, comment = "#>", collapse = TRUE}
x <- "name"
list2(!!x := 1)
```

Name-injection with glue operations was an extension of this existing feature and so inherited the same interface. However, there is no technical barrier to using glue strings on the LHS of `=`.

As we are now moving away from [`!!`][injection-operator] for common tasks, we are considering enabling glue strings with `=` and superseding `:=` usage. Track the progress of this change in [issue 1296](https://github.com/r-lib/rlang/issues/1296).


## Using glue syntax in packages

Since rlang does not depend directly on glue, you will have to ensure that glue is installed by adding it to your `Imports:` section.
Expand Down