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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘o2plsda.Rmd’ using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building ‘o2plsda.Rmd’

SUMMARY: processing the following file failed:
  ‘o2plsda.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘o2plsda-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘o2plsda.Rmd’ using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building ‘o2plsda.Rmd’

SUMMARY: processing the following file failed:
  ‘o2plsda.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘o2plsda-Ex.R’ failed
The error most likely occurred in:

> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘o2plsda.Rmd’ using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building ‘o2plsda.Rmd’

SUMMARY: processing the following file failed:
  ‘o2plsda.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'o2plsda-Ex.R' failed
The error most likely occurred in:

> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
--- re-building 'o2plsda.Rmd' using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building 'o2plsda.Rmd'

SUMMARY: processing the following file failed:
  'o2plsda.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in ‘o2plsda-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘o2plsda.Rmd’ using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building ‘o2plsda.Rmd’

SUMMARY: processing the following file failed:
  ‘o2plsda.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘o2plsda-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘o2plsda.Rmd’ using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building ‘o2plsda.Rmd’

SUMMARY: processing the following file failed:
  ‘o2plsda.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'o2plsda-Ex.R' failed
The error most likely occurred in:

> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
--- re-building 'o2plsda.Rmd' using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building 'o2plsda.Rmd'

SUMMARY: processing the following file failed:
  'o2plsda.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in 'o2plsda-Ex.R' failed
The error most likely occurred in:

> ### Name: plot.o2plsda
> ### Title: Score, VIP or loading plot for the O2PLS results
> ### Aliases: plot.o2plsda
> 
> ### ** Examples
> 
> X <- matrix(rnorm(50),10,5)
> Y <- matrix(rnorm(50),10,5)
> fit <- o2pls(X,Y,2,1,1)
> yy <- rep(c(0,1),5)
> fit0 <- oplsda(fit,yy,2)
> plot(fit0, type="score", group = factor(yy))
Error in `stat_ellipse()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─ggplot2:::by_layer(...)
  6. │     ├─rlang::try_fetch(...)
  7. │     │ ├─base::tryCatch(...)
  8. │     │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │     │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │     │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │     │ └─base::withCallingHandlers(...)
 12. │     └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13. │       └─l$compute_statistic(d, layout)
 14. │         └─ggplot2 (local) compute_statistic(..., self = self)
 15. │           └─self$stat$setup_params(data, self$stat_params)
 16. │             └─ggplot2 (local) setup_params(...)
 17. │               └─rlang::check_installed("MASS", "for calculating ellipses with `type = \"t\"`.")
 18. │                 └─base::stop(cnd)
 19. └─rlang (local) `<fn>`(`<rlb_r___>`)
 20.   └─handlers[[1L]](cnd)
 21.     └─cli::cli_abort(...)
 22.       └─rlang::abort(...)
Execution halted
Error(s) in re-building vignettes:
--- re-building 'o2plsda.Rmd' using knitr

Quitting from o2plsda.Rmd:91-96 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'o2plsda.Rmd' failed with diagnostics:
Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `setup_params()`:
! The package "MASS" is required for calculating ellipses with `type =
  "t"`.
--- failed re-building 'o2plsda.Rmd'

SUMMARY: processing the following file failed:
  'o2plsda.Rmd'

Error: Vignette re-building failed.
Execution halted