From 6204b9ecf8fe96657fea398c1ce8fb6969c79cf3 Mon Sep 17 00:00:00 2001 From: Jon Harmon Date: Fri, 2 Jun 2023 13:21:02 -0500 Subject: [PATCH] Remove speculation about the end of the walrus. Issue 1296 was closed saying the walrus must remain, so this section of this doc doesn't make sense anymore. --- man/rmd/glue-operators.Rmd | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/man/rmd/glue-operators.Rmd b/man/rmd/glue-operators.Rmd index 3d6e09b8a4..02ee93fcb4 100644 --- a/man/rmd/glue-operators.Rmd +++ b/man/rmd/glue-operators.Rmd @@ -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.