Skip to content

Commit bab8ac6

Browse files
committed
Soft-deprecate SE versions of aes()
1 parent e311f9a commit bab8ac6

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

NEWS.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
## New features
44

5-
* `aes()` now supports quasiquotation so that you can use `!!`, `!!!`, and
6-
`:=`. (ggplot2 does not currently support full tidy evaluation because
7-
when I wrote ggplot2 my understanding of NSE was quite flawed, and hence
8-
ggplot2 only captures one environment per plot, not one environment
9-
per aesthetic. We will fix this in a future release.)
5+
* `aes()` now supports quasiquotation so that you can use `!!`, `!!!`,
6+
and `:=`. This replaces `aes_()` and `aes_string()` which are now
7+
soft-deprecated (but will remain around for a long time).
108

119
* ggplot2 now works on R 3.1 onwards, and uses the
1210
[vdiffr](https://github.com/lionel-/vdiffr) package for visual testing.

R/aes.r

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ is_position_aes <- function(vars) {
198198
#' `aes(colour = "my colour")` or \code{aes{x = `X$1`}}
199199
#' with `aes_string()` is quite clunky.
200200
#'
201+
#'
202+
#' @section Life cycle:
203+
#'
204+
#' All these functions are soft-deprecated. Please use tidy evaluation
205+
#' idioms instead (see the quasiquotation section in
206+
#' [aes()] documentation).
207+
#'
201208
#' @param x,y,... List of name value pairs. Elements must be either
202209
#' quoted calls, strings, one-sided formulas or constants.
203210
#' @seealso [aes()]

man/aes_.Rd

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)