Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gg_dep

Give a deprecation error, warning, or message, depending on version number.


Description

Version numbers have the format <major>.<minor>.<subminor>, like 0.9.2. This function compares the current version number of ggplot2 against the specified version, which is the most recent version before the function (or other object) was deprecated.

Usage

gg_dep(version, msg)

Arguments

version

The last version of ggplot2 where this function was good (in other words, the last version where it was not deprecated).

msg

The message to print.

Details

gg_dep will give an error, warning, or message, depending on the difference between the current ggplot2 version and the specified version.

If the current major number is greater than version's major number, or if the current minor number is more than 1 greater than version's minor number, give an error.

If the current minor number differs from version's minor number by one, give a warning.

If the current subminor number differs from version's subminor number, print a message.


animint2

Animated Interactive Grammar of Graphics

v2020.9.18
GPL-3
Authors
Toby Hocking [aut, cre] (Original animint code), Hadley Wickham [aut] (Forked ggplot2 code), Winston Chang [aut] (Forked ggplot2 code), RStudio [cph] (Forked ggplot2 code), Nicholas Lewin-Koh [aut] (hexGrob), Martin Maechler [aut] (hexGrob), Randall Prium [aut] (cut_width), Susan VanderPlas [aut] (Animint GSOC 2013), Carson Sievert [aut] (Animint GSOC 2014), Kevin Ferris [aut] (Animint GSOC 2015), Jun Cai [aut] (Animint GSOC 2015), Faizan Khan [aut] (Animint GSOC 2016-2017), Vivek Kumar [aut] (Animint GSOC 2018), Himanshu Singh [aut] (Animint2 GSoC 2020)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.