Running ‘testthat.R’ [26s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyLPA)
  tidyLPA has received a major update, with a much easier workflow and improved functionality. However, you might have to update old syntax to account for the new workflow. See vignette('introduction-to-major-changes') for details!
  
  Mplus is not installed. Use only package = 'mclust' when calling estimate_profiles().
  Warning message:
  In system2("type", args = "mplus", stdout = FALSE, stderr = FALSE) :
    error in running command
  > 
  > test_check("tidyLPA")
  ── 1. Error: (unknown) (@test-compare-solutions.R#10)  ─────────────────────────
  replacement has length zero
  1: pisaUSA15[1:100, ] %>% single_imputation() %>% estimate_profiles(1:3, variances = c("equal", 
         "varying"), covariances = c("zero", "varying")) %>% compare_solutions(statistics = c("AIC", 
         "BIC")) at testthat/test-compare-solutions.R:10
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: function_list[[i]](value)
  8: estimate_profiles(., 1:3, variances = c("equal", "varying"), covariances = c("zero", 
         "varying"))
  9: estimate_profiles.data.frame(., 1:3, variances = c("equal", "varying"), covariances = c("zero", 
         "varying"))
  10: NextMethod("estimate_profiles", df)
  11: estimate_profiles.default(., 1:3, variances = c("equal", "varying"), covariances = c("zero", 
         "varying"))
  12: estimate_profiles_mclust(df, n_profiles, model_numbers, ...)
  13: lapply(boot_model_names, function(mod_name) {
         mclustBootstrapLRT(full_data, modelName = mod_name, nboot = ifelse(methods::hasArg("nboot"), 
             arg_list$nboot, 100), maxG = max(n_profiles), verbose = FALSE)
     })
  14: FUN(X[[i]], ...)
  15: mclustBootstrapLRT(full_data, modelName = mod_name, nboot = ifelse(methods::hasArg("nboot"), 
         arg_list$nboot, 100), maxG = max(n_profiles), verbose = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 20 SKIPPED: 13 FAILED: 1
  1. Error: (unknown) (@test-compare-solutions.R#10) 
  
  Error: testthat unit tests failed
  Execution halted