Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(iNZightTools)
  > 
  > test_check("iNZightTools")
  -- 1. Error: Tab-delim text reads (@test-read_text.R#11)  ----------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. iNZightTools::read_text(text)
    3. readr::read_delim(txt, delim = delim)
   11. dplyr::mutate_if(., is.character, as.factor)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: test longer parsing code(gapminder_2008)  -------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::arrange(., Year, desc(Country), Imports)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: test longer parsing code(census_at_school_500)  -------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. [ `%<>%`(...) ] with 7 more calls
    9. dplyr::select
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: (unknown) (@test_catvars.R#3)  ------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: (unknown) (@test_collapseLevels.R#3)  -----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 6. Error: (unknown)  --------------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    8. dplyr::filter(., cellsource %in% list("job"))
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   13. base::library.dynam(lib, package, package.lib)
  
  -- 7. Error: (unknown)  --------------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::filter(., rightfoot < 15)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 8. Error: Inner join works  -------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::inner_join(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 9. Error: Left join works  --------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::left_join(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 10. Error: Full join works  -------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::full_join(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 11. Error: Semi join works  -------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::semi_join(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 12. Error: Anti join works  -------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::anti_join(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 13. Error: (unknown) (@test_load_save.R#3)  ---------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 14. Error: Metadata is read correctly (@test_read_metadata.R#4)  ------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("meta.csv")
    2. iNZightTools:::fun(...)
    5. iNZightTools:::interpolate(mexp, `_env` = e)
    6. [ base::eval(...) ] with 1 more call
   13. dplyr::mutate(...)
   17. base::getExportedValue(pkg, name)
   18. base::asNamespace(ns)
   19. base::getNamespace(ns)
   20. base::loadNamespace(name)
   21. base::library.dynam(lib, package, package.lib)
  
  -- 15. Error: Name is read (@test_read_metadata.R#15)  -------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. iNZightTools::smart_read("meta.csv")
    5. iNZightTools:::fun(...)
    8. iNZightTools:::interpolate(mexp, `_env` = e)
    9. [ base::eval(...) ] with 1 more call
   14. dplyr::mutate(...)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 16. Error: Factor level orders are respected (@test_read_metadata.R#20)  ----
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("meta.csv")
    2. iNZightTools:::fun(...)
    5. iNZightTools:::interpolate(mexp, `_env` = e)
    6. [ base::eval(...) ] with 1 more call
   13. dplyr::mutate(...)
   17. base::getExportedValue(pkg, name)
   18. base::asNamespace(ns)
   19. base::getNamespace(ns)
   20. base::loadNamespace(name)
   21. base::library.dynam(lib, package, package.lib)
  
  -- 17. Error: First row is read if no title/description given (@test_read_metada
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    5. iNZightTools::smart_read("meta.txt")
    6. iNZightTools:::fun(...)
    9. iNZightTools:::interpolate(mexp, `_env` = e)
   10. [ base::eval(...) ] with 1 more call
   14. dplyr::mutate(...)
   21. base::getExportedValue(pkg, name)
   22. base::asNamespace(ns)
   23. base::getNamespace(ns)
   24. base::loadNamespace(name)
   25. base::library.dynam(lib, package, package.lib)
  
  -- 18. Error: (unknown) (@test_reorderlevels.R#3)  -----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 19. Error: Reshape wide to long works  --------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    8. tidyr::gather(., "v1999", "v2000", key = "Year", value = "Count")
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   15. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   16. base::library.dynam(lib, package, package.lib)
  
  -- 20. Error: Reshape long to wide works  --------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. tidyr::spread(., key = "Type", value = "Count")
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   16. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   17. base::library.dynam(lib, package, package.lib)
  
  -- 21. Error: Reshape results are factors  -------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    8. tidyr::gather(., "v1999", "v2000", key = "Year", value = "Count")
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   15. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   16. base::library.dynam(lib, package, package.lib)
  
  -- 22. Error: Correct vars are grabbed  ----------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::select(., Sepal.Length, Species, Sepal.Width)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 23. Error: Code is correct  -------------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::select(., Sepal.Length, Species, Sepal.Width)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 24. Error: Basic separate works  --------------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. tidyr::separate(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   16. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   17. base::library.dynam(lib, package, package.lib)
  
  -- 25. Error: Special symbols are escaped  -------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. tidyr::separate(...)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   16. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   17. base::library.dynam(lib, package, package.lib)
  
  -- 26. Error: files parsed correctly (@test_smart_read.R#11)  ------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_is(smart_read("meta.txt"), "data.frame")
    4. iNZightTools::smart_read("meta.txt")
    5. iNZightTools:::fun(...)
    8. iNZightTools:::interpolate(mexp, `_env` = e)
    9. [ base::eval(...) ] with 1 more call
   14. dplyr::mutate(...)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 27. Error: smart_read gets correct column types and dims (@test_smart_read.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 28. Error: smart_read can handle various encoding (@test_smart_read.R#27)  --
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("enc-latin.csv", encoding = "ISO-8859-1")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 29. Error: smart_read returns code with necessary conversions included (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(code(smart_read("test.sas7bdat")), "haven::read_sas(\"test.sas7bdat\") %>% dplyr::mutate(\"gender\" = as.factor(gender))")
    5. iNZightTools::smart_read("test.sas7bdat")
    6. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., gender = as.factor(gender))
   18. base::getExportedValue(pkg, name)
   19. base::asNamespace(ns)
   20. base::getNamespace(ns)
   21. base::loadNamespace(name)
   22. base::library.dynam(lib, package, package.lib)
  
  -- 30. Error: smart_read doesn't output col_types spec (@test_smart_read.R#54)  
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(x <- smart_read("cas.txt"))
    9. iNZightTools::smart_read("cas.txt")
   10. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., gender = as.factor(gender), grade = as.factor(grade))
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 31. Error: Column type overrides are respected (@test_smart_read.R#58)  -----
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    6. iNZightTools::smart_read("cas500.csv")
    7. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(...)
   19. base::getExportedValue(pkg, name)
   20. base::asNamespace(ns)
   21. base::getNamespace(ns)
   22. base::loadNamespace(name)
   23. base::library.dynam(lib, package, package.lib)
  
  -- 32. Error: SAS Import num to cat works (@test_smart_read.R#79)  -------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
    9. iNZightTools::smart_read(...)
   10. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., gender = as.factor(gender))
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 33. Error: smart_read can handle spaces and comment-characters (@test_smart_r
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_s3_class(smart_read("characters.csv"), "data.frame")
    4. iNZightTools::smart_read("characters.csv")
    5. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(...)
   17. base::getExportedValue(pkg, name)
   18. base::asNamespace(ns)
   19. base::getNamespace(ns)
   20. base::loadNamespace(name)
   21. base::library.dynam(lib, package, package.lib)
  
  -- 34. Error: conversion to categorical works for datetimes (@test_smart_read.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(dt <- smart_read("dt.csv", column_types = c(x = "c")))
    9. iNZightTools::smart_read("dt.csv", column_types = c(x = "c"))
   10. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., x = as.factor(x))
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 35. Error: converting numeric with some string values to cat behaves appropri
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(d <- smart_read(tmp, column_types = c(y = "c")))
    9. iNZightTools::smart_read(tmp, column_types = c(y = "c"))
   10. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., y = as.factor(y))
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 36. Error: changing column types in delimited file (@test_smart_read.R#117)  
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(dt <- smart_read("cas.txt", column_types = c(education = "c")))
    9. iNZightTools::smart_read("cas.txt", column_types = c(education = "c"))
   10. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(...)
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 37. Error: Reading (excel) files converts strings to factor (@test_smart_read
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.xls")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 38. Error: Read excel returns list of sheets as attribute (@test_smart_read.R
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.xls", preview = TRUE)
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 39. Error: Special characters are correctly replaced (@test_smart_read.R#158)
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. iNZightTools:::validate_names(fb)
   11. dplyr::rename(...)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 40. Error: Final dot is preserved if it is in the original name (@test_smart_
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. iNZightTools:::validate_names(d)
   11. dplyr::rename(., y = "y?")
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 41. Error: Duplicates are numbered (@test_smart_read.R#179)  ----------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. iNZightTools:::validate_names(d)
   11. dplyr::rename(., y = "y!", y.1 = "y?")
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 42. Error: JSON supported (@test_smart_read.R#190)  -------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equivalent(smart_read(t), iris)
    4. iNZightTools::smart_read(t)
    5. iNZightTools:::strings_to_factors(d)
   12. dplyr::mutate(., Species = as.factor(Species))
   17. base::getExportedValue(pkg, name)
   18. base::asNamespace(ns)
   19. base::getNamespace(ns)
   20. base::loadNamespace(name)
   21. base::library.dynam(lib, package, package.lib)
  
  -- 43. Error: (unknown) (@test_unite.R#3)  -------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. iNZightTools::smart_read("cas500.csv")
    2. iNZightTools:::strings_to_factors(d)
   11. dplyr::mutate(...)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 127 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 43 ]
  1. Error: Tab-delim text reads (@test-read_text.R#11) 
  2. Error: test longer parsing code(gapminder_2008) 
  3. Error: test longer parsing code(census_at_school_500) 
  4. Error: (unknown) (@test_catvars.R#3) 
  5. Error: (unknown) (@test_collapseLevels.R#3) 
  6. Error: (unknown) 
  7. Error: (unknown) 
  8. Error: Inner join works 
  9. Error: Left join works 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted