Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(githubinstall)
  > 
  > test_check("githubinstall",  filter = "[^(really_install)]")
  1. Error: Install a single package (@test-gh_install_packages.R#9) -------------
  missing value where TRUE/FALSE needed
  1: with_mock(`githubinstall:::install_package` = install_package_mock, act <- gh_install_packages(repo, 
         ask = FALSE)) at testthat/test-gh_install_packages.R:9
  2: eval(expression, parent.frame())
  3: eval(expression, parent.frame())
  4: gh_install_packages(repo, ask = FALSE)
  5: lapply(packages, select_repository)
  6: FUN(X[[i]], ...)
  7: gh_suggest(package_name, keep_title = TRUE)
  8: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  9: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  10: FUN(X[[i]], ...)
  
  2. Error: Install two package (@test-gh_install_packages.R#18) -----------------
  missing value where TRUE/FALSE needed
  1: with_mock(`githubinstall:::install_package` = install_package_mock, act <- gh_install_packages(repo, 
         ask = FALSE)) at testthat/test-gh_install_packages.R:18
  2: eval(expression, parent.frame())
  3: eval(expression, parent.frame())
  4: gh_install_packages(repo, ask = FALSE)
  5: lapply(packages, select_repository)
  6: FUN(X[[i]], ...)
  7: gh_suggest(package_name, keep_title = TRUE)
  8: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  9: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  10: FUN(X[[i]], ...)
  
  3. Error: Install: ask yes (@test-gh_install_packages.R#37) --------------------
  missing value where TRUE/FALSE needed
  1: with_mock(`base::readline` = function(...) "Y", `githubinstall:::install_package` = install_package_mock, 
         act <- gh_install_packages(repo, ask = TRUE)) at testthat/test-gh_install_packages.R:37
  2: eval(expression, parent.frame())
  3: eval(expression, parent.frame())
  4: gh_install_packages(repo, ask = TRUE)
  5: lapply(packages, select_repository)
  6: FUN(X[[i]], ...)
  7: gh_suggest(package_name, keep_title = TRUE)
  8: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  9: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  10: FUN(X[[i]], ...)
  
  4. Error: no full name: single result (@test-gh_suggest.R#17) ------------------
  missing value where TRUE/FALSE needed
  1: gh_suggest(repo_name = repo, keep_title = FALSE) at testthat/test-gh_suggest.R:17
  2: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  3: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  4: FUN(X[[i]], ...)
  
  5. Error: no full name: multi result (@test-gh_suggest.R#23) -------------------
  missing value where TRUE/FALSE needed
  1: gh_suggest(repo_name = repo, keep_title = FALSE) at testthat/test-gh_suggest.R:23
  2: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  3: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  4: FUN(X[[i]], ...)
  
  6. Error: no full name: has title (@test-gh_suggest.R#29) ----------------------
  missing value where TRUE/FALSE needed
  1: gh_suggest(repo_name = repo, keep_title = TRUE) at testthat/test-gh_suggest.R:29
  2: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  3: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  4: FUN(X[[i]], ...)
  
  7. Error: to_candidates: no inds (@test-gh_suggest.R#37) -----------------------
  missing value where TRUE/FALSE needed
  1: to_candidates(package_name = package_name) at testthat/test-gh_suggest.R:37
  
  8. Failure: to_candidates: single result (@test-gh_suggest.R#44) ---------------
  `act` not equal to "twitter/AnomalyDetection".
  Lengths differ: 2 vs 1
  
  
  9. Error: select_repository: single candidate (@test-utils_for_install.R#121) --
  missing value where TRUE/FALSE needed
  1: select_repository(package_name = package_name) at testthat/test-utils_for_install.R:121
  2: gh_suggest(package_name, keep_title = TRUE)
  3: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  4: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  5: FUN(X[[i]], ...)
  
  10. Error: select_repository: multi candidates (@test-utils_for_install.R#130) -
  missing value where TRUE/FALSE needed
  1: with_mock(`utils::menu` = function(...) 1, act <- select_repository(package_name = package_name)) at testthat/test-utils_for_install.R:130
  2: eval(expression, parent.frame())
  3: eval(expression, parent.frame())
  4: select_repository(package_name = package_name)
  5: gh_suggest(package_name, keep_title = TRUE)
  6: suggest_no_fullname(package_name = repo_name, keep_title = keep_title)
  7: lapply(suggested_package_names, to_candidates, keep_title = keep_title)
  8: FUN(X[[i]], ...)
  
  testthat results ================================================================
  OK: 36 SKIPPED: 0 FAILED: 10
  1.  Error: Install a single package (@test-gh_install_packages.R#9) 
  2.  Error: Install two package (@test-gh_install_packages.R#18) 
  3.  Error: Install: ask yes (@test-gh_install_packages.R#37) 
  4.  Error: no full name: single result (@test-gh_suggest.R#17) 
  5.  Error: no full name: multi result (@test-gh_suggest.R#23) 
  6.  Error: no full name: has title (@test-gh_suggest.R#29) 
  7.  Error: to_candidates: no inds (@test-gh_suggest.R#37) 
  8.  Failure: to_candidates: single result (@test-gh_suggest.R#44) 
  9.  Error: select_repository: single candidate (@test-utils_for_install.R#121) 
  10. Error: select_repository: multi candidates (@test-utils_for_install.R#130) 
  
  Error: testthat unit tests failed
  Execution halted