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)
Error in library(ggtree) : there is no package called ‘ggtree’
Execution halted