Running examples in ‘funData-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ggplot.irregFunData
> ### Title: Visualize irregular functional data objects using ggplot
> ### Aliases: ggplot,irregFunData-method ggplot.irregFunData
> 
> ### ** Examples
> 
> # Install packages ggplot2 and gridExtra before running the examples
> ## Don't show: 
> requireNamespace("ggplot2", quietly = TRUE)
> ## End(Don't show)
> 
> # Generate data
> argvals <- seq(0,2*pi,0.01)
> ind <- replicate(5, sort(sample(1:length(argvals), sample(5:10,1))))
> object <- irregFunData(argvals = lapply(ind, function(i){argvals[i]}),
+                   X = lapply(ind, function(i){sample(1:10,1) / 10 * argvals[i]^2}))
> 
> # Plot the data
> ggplot(object)
Warning in ggplot.irregFunData(data, ...) :
  Please install the ggplot2 and reshape2 packages to use the ggplot function for funDataObjects.
NULL
> 
>  # Parameters passed to geom_line are passed via the ... argument
> ggplot(object, color = "red", linetype = 3)
Warning in ggplot.irregFunData(data, ...) :
  Please install the ggplot2 and reshape2 packages to use the ggplot function for funDataObjects.
NULL
> 
> # Plot the data and add green dots for the 2nd function
> ggplot(object) + ggplot(object, obs = 2, geom = "point", color = "green", add = TRUE)
Warning in ggplot.irregFunData(data, ...) :
  Please install the ggplot2 and reshape2 packages to use the ggplot function for funDataObjects.
Warning in ggplot.irregFunData(data, ...) :
  Please install the ggplot2 and reshape2 packages to use the ggplot function for funDataObjects.
integer(0)
> 
> # New layers can be added directly to the ggplot object using functions from the ggplot2 package
> g <- ggplot(object)
Warning in ggplot.irregFunData(data, ...) :
  Please install the ggplot2 and reshape2 packages to use the ggplot function for funDataObjects.
> g + ggplot2::theme_bw() + ggplot2::ggtitle("Plot with minimal theme and axis labels") +
+     ggplot2::xlab("The x-Axis") + ggplot2::ylab("The y-Axis")
Error in loadNamespace(name) : there is no package called ‘ggplot2’
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted