<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 'Ternary'

# install.packages("testthat") # Run if you don't have it installed
nem <- read_nem2(tab = nemtab, tax = nemtax, meta = nemmeta)
test_that("nem_plot works for beta-class", {
beta_pcoa <- calc_beta(nem, pcoa, Treatments, method = "bray")
p2 <- nem_plot(beta_pcoa, level = 0.6, type = 1)
p3 <- nem_plot(beta_pcoa, level = 0.6, type = 2)
test_that("nem_plot works for beta2-class", {
beta2_pcoa <- calc_beta2(nem2, pcoa, con_crop, season, method = "bray")
p2 <- nem_plot(beta2_pcoa, level = 0.6, type = 1)
p3 <- nem_plot(beta2_pcoa, level = 0.6, type = 2)
test_that("nem_plot works for compare-class", {
compare_lsd <- calc_compare(nem, .group = Treatments, y = Mesorhabditis, method = LSD)
p2 <- nem_plot(compare_lsd, type = 2, add = "mean_se")
p3 <- nem_plot(compare_lsd, type = 2, add = "mean_sd")
test_that("nem_plot works for compare2-class", {
compare2_lsd <- calc_compare2(nem2, .group1 = con_crop, .group2 = season, y = pH, method = LSD2)
p1 <- nem_plot(compare2_lsd, type1 = 1, type2 = 1)
p2 <- nem_plot(compare2_lsd, type1 = 2, type2 = 2, add = "mean_sd")
test_that("nem_plot works for funguild-class", {
test_that("nem_plot works for funguild2-class", {
funguild2 <- calc_funguild2(nem2_with_index, con_crop, season)
test_that("nem_plot works for mf-class", {
test_that("nem_plot works for mf2-class", {
mf2 <- calc_mf2(nem2_with_index, con_crop, season)
test_that("nem_plot works for ef-class", {
test_that("nem_plot works for ef2-class", {
ef2 <- calc_ef2(nem2_with_index, con_crop, season)
test_that("nem_plot works for ter-class", {
test_that("nem_plot works for ter2-class", {
ter2 <- calc_ter2(nem2, con_crop, season)
test_that("nem_plot works for lme-class", {
lme <- calc_lm(nem_index, group = Treatments, x = Chao1, y = TotalBiomass)
test_that("nem_plot works for lme2-class", {
lme2 <- calc_lm2(nem2, con_crop, season, x = pH, y = Fe)