Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(opendatatoronto)
  > 
  > test_check("opendatatoronto")
  -- 1. Error: browse_package returns the package page URL (@test-browse.R#10)  --
  subscript out of bounds
  Backtrace:
   1. testthat::expect_equal(...)
   4. opendatatoronto::browse_package("996cfe8d-fb35-40ce-b569-698d51fc683b")
  
  -- 2. Error: browse_resource returns the resource's package page URL (@test-brow
  subscript out of bounds
  Backtrace:
   1. testthat::expect_equal(...)
   4. opendatatoronto::browse_resource("655a138c-d381-4fe7-b3b3-a6620825161f")
   5. opendatatoronto::browse_package(resource_res[["package_id"]])
   6. opendatatoronto:::as_id(package)
   7. base::is.data.frame(x)
  
  -- 3. Failure: package_id_from_url errors when passed a URL that does not have a
  `package_id_from_url("open.toronto.ca/dataset/test")` threw an error with unexpected message.
  Expected match: "No package id found matching the URL*"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. opendatatoronto:::package_id_from_url("open.toronto.ca/dataset/test")
    7. opendatatoronto::search_packages(package_title)
    8. ckanr::package_search
    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]])
   18. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   19. base::library.dynam(lib, package, package.lib)
  
  -- 4. Failure: package_id_from_url errors when passed a URL that does not have a
  `package_id_from_url("open.toronto.ca/dataset/ttc")` threw an error with unexpected message.
  Expected match: "No package id found matching the URL*"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. opendatatoronto:::package_id_from_url("open.toronto.ca/dataset/ttc")
    7. opendatatoronto::search_packages(package_title)
    8. ckanr::package_search
    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]])
   18. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   19. base::library.dynam(lib, package, package.lib)
  
  -- 5. Failure: check_found errors when the resource doesn't exist. (@test-utils.
  `check_found(res, "12345", "resource")` did not throw an error.
  
  == testthat results  ===========================================================
  [ OK: 55 | SKIPPED: 7 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: browse_package returns the package page URL (@test-browse.R#10) 
  2. Error: browse_resource returns the resource's package page URL (@test-browse.R#18) 
  3. Failure: package_id_from_url errors when passed a URL that does not have a package associated with it (@test-utils.R#70) 
  4. Failure: package_id_from_url errors when passed a URL that does not have a package associated with it (@test-utils.R#74) 
  5. Failure: check_found errors when the resource doesn't exist. (@test-utils.R#107) 
  
  Error: testthat unit tests failed
  Execution halted