Running examples in 'deeptime-Ex.R' failed
The error most likely occurred in:

> ### Name: gggeo_scale_old
> ### Title: Add a geologic scale to ggplots (old version)
> ### Aliases: gggeo_scale_old
> 
> ### ** Examples
> 
> library(ggplot2)
> # bottom scale by default
> p <- ggplot() +
+   geom_point(aes(y = runif(1000, .5, 8), x = runif(1000, 0, 1000))) +
+   scale_x_reverse() +
+   coord_cartesian(xlim = c(0, 1000), ylim = c(0,8), expand = FALSE) +
+   theme_classic()
> gggeo_scale_old(p)
> 
> # can specify any side of the plot
> p <- ggplot() +
+  geom_point(aes(x = runif(1000, .5, 8), y = runif(1000, 0, 1000))) +
+  scale_y_reverse() +
+  coord_cartesian(xlim = c(0, 8), ylim = c(0,1000), expand = FALSE) +
+  theme_classic()
> gggeo_scale_old(p, pos = "left", rot = 90)
> 
> # can add multiple scales
> p <- ggplot() +
+   geom_point(aes(y = runif(1000, 1, 8), x = runif(1000, 0, 1000))) +
+   scale_x_reverse() +
+   coord_cartesian(xlim = c(0, 100), ylim = c(0,8), expand = FALSE) +
+   theme_classic()
> p <- gggeo_scale_old(p, height = .03, abbrv = FALSE)
> p <- gggeo_scale_old(p, dat = "epochs", gap = .03, height = .1, rot = 90, size = 2.5, abbrv = FALSE)
> 
> # intervals on both sides for different timescales (ICS stages vs North American Land Mammal Ages)
> p <- ggplot() +
+   geom_point(aes(x = runif(1000, 1, 9), y = runif(1000, 0, 65))) +
+   scale_y_reverse() +
+   coord_cartesian(xlim = c(0, 10), ylim = c(0,65), expand = FALSE) +
+   theme_classic()
> p <- gggeo_scale_old(p, dat = "stages", pos = "left", height = .1, size = 2.5, abbrv = FALSE)
> gggeo_scale_old(p, dat = "North American Land Mammal Ages", pos = "right", height = .1, size = 2.5,
+                 abbrv = FALSE)
> 
> #can add scales to a faceted plot
> df <- data.frame(x = runif(1000,0,541), y = runif(1000,.5,8), z = sample(c(1,2,3,4), 1000, TRUE))
> p <- ggplot(df) +
+   geom_point(aes(x, y)) +
+   scale_x_reverse() +
+   coord_cartesian(xlim = c(0, 541), ylim = c(0,8), expand = FALSE) +
+   theme_classic() +
+   facet_wrap(~z, nrow = 2)
> gggeo_scale_old(p)
> 
> #can even add a scale to a phylogeny (using ggtree)
> library(phytools)
Loading required package: ape
Loading required package: maps
> library(ggtree)
ggtree v2.4.2  For help: https://yulab-smu.top/treedata-book/

If you use ggtree in published research, please cite the most appropriate paper(s):

1. Guangchuang Yu. Using ggtree to visualize data on tree-like structures. Current Protocols in Bioinformatics, 2020, 69:e96. doi:10.1002/cpbi.96
2. Guangchuang Yu, Tommy Tsan-Yuk Lam, Huachen Zhu, Yi Guan. Two methods for mapping and visualizing associated data on phylogeny using ggtree. Molecular Biology and Evolution 2018, 35(12):3041-3043. doi:10.1093/molbev/msy194
3. Guangchuang Yu, David Smith, Huachen Zhu, Yi Guan, Tommy Tsan-Yuk Lam. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. Methods in Ecology and Evolution 2017, 8(1):28-36. doi:10.1111/2041-210X.12628



Attaching package: 'ggtree'

The following object is masked from 'package:ape':

    rotate

> tree <- pbtree(b = .03, d = .01,  n=100)
> p <- ggtree(tree) +
+  coord_cartesian(xlim = c(0,-500), ylim = c(-10,Ntip(tree)), expand = FALSE) +
+  scale_x_continuous(breaks=seq(-500,0,100), labels=abs(seq(-500,0,100))) +
+  theme_tree2()
Error in DataMask$new(.data, caller_env) : 
  argument "caller_env" is missing, with no default
Calls: ggtree ... mutate.data.frame -> mutate_cols -> <Anonymous> -> initialize
Execution halted