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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: HeatX
> ### Title: Data from a heat exchanger laboratory
> ### Aliases: HeatX
> ### Keywords: datasets
> 
> ### ** Examples
> 
> # We can test for heat exchange with the environment by checking to see if the 
> # heat gained by the cold water matches the heat lost by the hot water.
> C_p <- 4.182 / 60  # / 60 because measuring m in L/min
> HeatX2 <- 
+   dplyr::mutate(HeatX,
+     Q.cold = m.cold * C_p * (T.cold.out - T.cold.in),
+     Q.hot  = m.hot * C_p * (T.hot.out- T.hot.in),
+     Q.env  = Q.cold + Q.hot
+   )
> if (require(ggformula)) {
+   gf_jitter( "" ~ Q.env, data = HeatX2, alpha = 0.6, size = 4, 
+     width = 0, height = 0.1, seed = 123) %>%
+   gf_labs(y = "")
+ }
Loading required package: ggformula
Loading required package: ggplot2
Loading required package: ggstance

Attaching package: 'ggstance'

The following objects are masked from 'package:ggplot2':

    GeomErrorbarh, geom_errorbarh


New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
> if (require(mosaic)) {
+   t.test( ~Q.env, data = HeatX2 )
+ }
Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: lattice
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Have you tried the ggformula package for your plots?

Attaching package: 'mosaic'

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

    mean

The following objects are masked from 'package:dplyr':

    count, do, tally

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

    stat

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

Error in model.frame.default(formula = formula, data = data) : 
  invalid type (closure) for variable 'groups'
Calls: t.test ... t.test.formula -> eval -> eval -> <Anonymous> -> model.frame.default
Execution halted