Running 'testthat.R' [4s/5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(seminr)
  > Sys.unsetenv("R_TESTS")
  > test_check("seminr")
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-bootstrap.R#23: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 1. Error: (unknown) (@test-bootstrap.R#23)  ---------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-consistent-interactions.R#24: estimate_pls(data = mobi, measurement_model = mobi_mm, structural_model = mobi_sm)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 2. Error: (unknown) (@test-consistent-interactions.R#24)  -------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(...)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-consistent.R#21: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 3. Error: (unknown) (@test-consistent.R#21)  --------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-descriptive-stats.R#19: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 4. Error: (unknown) (@test-descriptive-stats.R#19)  -------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5: estimate_pls(data = data, measurement_model = mm[!(substr(names(mm), 
      nchar(names(mm)) - 10, nchar(names(mm))) == "interaction") & 
      !(names(mm) == "higher_order_composite")], structural_model = sm, 
      inner_weights = inners)
  where 6: prepare_higher_order_model(data = data, sm = structural_model, 
      mm = measurement_model, inners = inner_weights, HOCs = HOCs)
  where 7 at testthat/test-hoc.R#23: estimate_pls(data = mobi, measurement_model = mobi_mm, structural_model = mobi_sm)
  where 8: eval(code, test_env)
  where 9: eval(code, test_env)
  where 10: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 11: doTryCatch(return(expr), name, parentenv, handler)
  where 12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 13: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 14: doTryCatch(return(expr), name, parentenv, handler)
  where 15: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 16: tryCatchList(expr, classes, parentenv, handlers)
  where 17: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 18: test_code(NULL, exprs, env)
  where 19: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 20: force(code)
  where 21: doWithOneRestart(return(expr), restart)
  where 22: withOneRestart(expr, restarts[[1L]])
  where 23: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 24: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 25: FUN(X[[i]], ...)
  where 26: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 27: force(code)
  where 28: doWithOneRestart(return(expr), restart)
  where 29: withOneRestart(expr, restarts[[1L]])
  where 30: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 31: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 32: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 34: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 35: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 5. Error: (unknown) (@test-hoc.R#23)  ---------------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(...)
   2. seminr:::prepare_higher_order_model(...)
   3. seminr::estimate_pls(...)
   4. seminr:::warnings(measurement_model, data, structural_model)
   5. seminr:::warning_single_item_formative(mmMatrix)
   7. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-inner_weighting.R#24: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 6. Error: (unknown) (@test-inner_weighting.R#24)  ---------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-metric.R#23: estimate_pls(mobi, mobi_mm, mobi_sm)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 7. Error: (unknown) (@test-metric.R#23)  ------------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-output.r#26: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 8. Error: (unknown) (@test-output.r#26)  ------------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_factorial)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-structure.r#79: estimate_pls(data = mobi, measurement_model = mm1, structural_model = sm1)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 9. Error: (unknown) (@test-structure.r#79)  ---------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(data = mobi, measurement_model = mm1, structural_model = sm1)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-summary.R#19: estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 10. Error: (unknown) (@test-summary.R#19)  ----------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm, inner_weights = path_weighting)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  Generating the seminr model
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  seminr
   --- call from context --- 
  mmMatrix_per_construct(construct, mmMatrix)
   --- call from argument --- 
  if (class(constructmatrix) == "character") {
      constructmatrix = t(as.matrix(constructmatrix))
  }
   --- R stacktrace ---
  where 1: mmMatrix_per_construct(construct, mmMatrix)
  where 2: nrow(mmMatrix_per_construct(construct, mmMatrix))
  where 3: warning_single_item_formative(mmMatrix)
  where 4: warnings(measurement_model, data, structural_model)
  where 5 at testthat/test-validity.R#27: estimate_pls(mobi, mobi_mm, mobi_sm1, inner_weights = path_weighting)
  where 6: eval(code, test_env)
  where 7: eval(code, test_env)
  where 8: withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error)
  where 9: doTryCatch(return(expr), name, parentenv, handler)
  where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 12: doTryCatch(return(expr), name, parentenv, handler)
  where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 14: tryCatchList(expr, classes, parentenv, handlers)
  where 15: tryCatch(withCallingHandlers({
      eval(code, test_env)
      if (!handled && !is.null(test)) {
          skip_empty()
      }
  }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
      message = handle_message, error = handle_error), error = handle_fatal, 
      skip = function(e) {
      })
  where 16: test_code(NULL, exprs, env)
  where 17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 18: force(code)
  where 19: doWithOneRestart(return(expr), restart)
  where 20: withOneRestart(expr, restarts[[1L]])
  where 21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          reporter$start_file(basename(path))
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          reporter$.end_context()
          reporter$end_file()
      })
  where 23: FUN(X[[i]], ...)
  where 24: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 25: force(code)
  where 26: doWithOneRestart(return(expr), restart)
  where 27: withOneRestart(expr, restarts[[1L]])
  where 28: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  where 29: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 30: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 31: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 32: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 33: test_check("seminr")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (construct, mmMatrix) 
  {
      constructmatrix <- mmMatrix[mmMatrix[, "construct"] == construct, 
          c("construct", "measurement", "type")]
      if (class(constructmatrix) == "character") {
          constructmatrix = t(as.matrix(constructmatrix))
      }
      return(constructmatrix)
  }
  <bytecode: 0x3fd1ee0>
  <environment: namespace:seminr>
   --- function search by body ---
  Function mmMatrix_per_construct in namespace seminr has this body.
   ----------- END OF FAILURE REPORT -------------- 
  -- 11. Error: (unknown) (@test-validity.R#27)  ---------------------------------
  the condition has length > 1
  Backtrace:
   1. seminr::estimate_pls(mobi, mobi_mm, mobi_sm1, inner_weights = path_weighting)
   2. seminr:::warnings(measurement_model, data, structural_model)
   3. seminr:::warning_single_item_formative(mmMatrix)
   5. seminr:::mmMatrix_per_construct(construct, mmMatrix)
  
  == testthat results  ===========================================================
  [ OK: 21 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 11 ]
  1. Error: (unknown) (@test-bootstrap.R#23) 
  2. Error: (unknown) (@test-consistent-interactions.R#24) 
  3. Error: (unknown) (@test-consistent.R#21) 
  4. Error: (unknown) (@test-descriptive-stats.R#19) 
  5. Error: (unknown) (@test-hoc.R#23) 
  6. Error: (unknown) (@test-inner_weighting.R#24) 
  7. Error: (unknown) (@test-metric.R#23) 
  8. Error: (unknown) (@test-output.r#26) 
  9. Error: (unknown) (@test-structure.r#79) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted