Running ‘testthat.R’ [10s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(zalpha)
  > 
  > test_check("zalpha")
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 403 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-create_LDprofile.R:16:3): create_LDprofile calculates the LD profile correctly ──
  Error in `create_LDprofile(dist = df$dist, x = as.matrix(df[, 3:7]), bin_size = 0.001, 
      max_dist = 0.005, beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:16:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:31:3): create_LDprofile calculates the LD profile correctly with a different max_dist ──
  Error in `create_LDprofile(dist = df$dist, x = as.matrix(df[, 3:7]), bin_size = 0.001, 
      max_dist = 0.003, beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:31:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:45:3): create_LDprofile calculates the LD profile correctly with no max_dist supplied ──
  Error in `create_LDprofile(dist = df$dist, x = as.matrix(df[, 3:7]), bin_size = 0.001, 
      beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:45:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:61:3): create_LDprofile calculates the LD profile correctly with a different bin size ──
  Error in `create_LDprofile(dist = df$dist, x = as.matrix(df[, 3:7]), bin_size = 5e-04, 
      beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:61:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:94:3): create_LDprofile calculates the LD profile correctly with character matrix ──
  Error in `create_LDprofile(dist = df1$dist, x = as.matrix(df1[, 3:7]), 
      bin_size = 0.001, max_dist = 0.005, beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:94:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:214:3): create_LDprofile calculates the LD profile correctly with missing value in x ──
  Error in `create_LDprofile(dist = df1$dist, x = as.matrix(df1[, 3:7]), 
      bin_size = 0.001, max_dist = 0.005, beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:214:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:230:3): create_LDprofile calculates the LD profile correctly with missing value in dist ──
  Error in `create_LDprofile(dist = df1$dist, x = as.matrix(df1[, 3:7]), 
      bin_size = 0.001, max_dist = 0.005, beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:230:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  ── Error (test-create_LDprofile.R:267:3): create_LDprofile calculates the LD profile correctly when beta calculation fails on first attempt ──
  Error in `create_LDprofile(dist = rep(0, 20), x = x1, bin_size = 0.001, 
      beta_params = TRUE)`: Package "fitdistrplus" needed for Beta parameters to be calculated. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-create_LDprofile.R:267:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─zalpha::create_LDprofile(...)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 403 ]
  Error: Test failures
  Execution halted