Since installing the latest version of ggplot2 (0.9.1), I have been getting messages from my old code including:
> warnings()
Warning messages:
1: 'opts' is deprecated.
Use 'theme' instead.
See help("Deprecated")
2: 'theme_text' is deprecated.
Use 'element_text' instead.
See help("Deprecated")
8: In opts(title = trait axis.text.x = theme_text(size = fontsize$axis), ... :
Setting the plot title with opts(title="...") is deprecated. Use labs(title="...") or ggtitle("...") instead.
9: 'opts' is deprecated.
I have a few questions:
- help("Depreciated") returns
"no documentation for 'Depreciated' in specified packages and libraries"
; is this an error? - Is there some time at which 'Depreciated' will turn to 'Obsolete' and my code will begin to throw errors?
- How can I update my code (to solve these specific issues and prevent others still waiting to be found)?
- Can I load two versions of ggplot2 and specify which version of each function I am using?
- On what timescale might updated syntax become obsolete?
I accept that this is a common issue with software, but perhaps some contributors to SO have specific insight into the longer term plans and rationale of the package's author.