Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ropenaq)
  > 
  > test_check("ropenaq")
  -- 1. Error: cities returns a data.frame (tbl_df) (@test-aq_cities.R#4)  -------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_cities(page = 1, limit = 10)
    2. ropenaq:::getResults(urlAQ, argsList)
    3. ropenaq:::getResults_bypage(urlAQ, argsList)
    4. ropenaq:::treat_res(res)
    5. dplyr::tbl_df(results)
    7. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
    8. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
    9. tibble:::recycle_columns(x, .rows, lengths)
   10. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   11. tibble:::update_tibble_attrs(x, ...)
  
  -- 2. Error: cities has the right columns (@test-aq_cities.R#16)  --------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_cities(page = 1, country = "IN", limit = 10)
    2. ropenaq:::buildQuery(country = country, limit = limit, page = page)
    4. ropenaq::aq_countries()
    5. ropenaq:::getResults(urlAQ, argsList)
    6. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    7. ropenaq:::getResults_bypage(urlAQ, argsList)
    8. ropenaq:::treat_res(res)
    9. dplyr::tbl_df(results)
   11. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   12. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   13. tibble:::recycle_columns(x, .rows, lengths)
   14. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   15. tibble:::update_tibble_attrs(x, ...)
  
  -- 3. Error: countries returns a data.frame (tbl_df) with attributes (@test-aq_c
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_countries()
    2. ropenaq:::getResults(urlAQ, argsList)
    3. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    4. ropenaq:::getResults_bypage(urlAQ, argsList)
    5. ropenaq:::treat_res(res)
    6. dplyr::tbl_df(results)
    8. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
    9. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   10. tibble:::recycle_columns(x, .rows, lengths)
   11. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   12. tibble:::update_tibble_attrs(x, ...)
  
  -- 4. Error: countries has the right columns (@test-aq_countries.R#16)  --------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_countries()
    2. ropenaq:::getResults(urlAQ, argsList)
    3. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    4. ropenaq:::getResults_bypage(urlAQ, argsList)
    5. ropenaq:::treat_res(res)
    6. dplyr::tbl_df(results)
    8. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
    9. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   10. tibble:::recycle_columns(x, .rows, lengths)
   11. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   12. tibble:::update_tibble_attrs(x, ...)
  
  -- 5. Error: latest returns a data.frame (tbl_df) (@test-aq_latest.R#4)  -------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_latest(page = 1, limit = 100)
    2. ropenaq:::getResults(urlAQ, argsList)
    3. ropenaq:::getResults_bypage(urlAQ, argsList)
    4. ropenaq:::treat_res(res)
    5. dplyr::tbl_df(results)
    7. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
    8. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
    9. tibble:::recycle_columns(x, .rows, lengths)
   10. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   11. tibble:::update_tibble_attrs(x, ...)
  
  -- 6. Error: latest has the right columns (@test-aq_latest.R#27)  --------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_latest(page = 1, limit = 2)
    2. ropenaq:::getResults(urlAQ, argsList)
    3. ropenaq:::getResults_bypage(urlAQ, argsList)
    4. ropenaq:::treat_res(res)
    5. dplyr::tbl_df(results)
    7. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
    8. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
    9. tibble:::recycle_columns(x, .rows, lengths)
   10. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   11. tibble:::update_tibble_attrs(x, ...)
  
  -- 7. Error: locations returns a data.frame (tbl_df) (@test-aq_locations.R#4)  -
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_locations(page = 1, country = "AD")
    2. ropenaq:::buildQuery(...)
    4. ropenaq::aq_countries()
    5. ropenaq:::getResults(urlAQ, argsList)
    6. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    7. ropenaq:::getResults_bypage(urlAQ, argsList)
    8. ropenaq:::treat_res(res)
    9. dplyr::tbl_df(results)
   11. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   12. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   13. tibble:::recycle_columns(x, .rows, lengths)
   14. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   15. tibble:::update_tibble_attrs(x, ...)
  
  -- 8. Error: locations has the right columns (@test-aq_locations.R#15)  --------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_locations(page = 1, country = "AD")
    2. ropenaq:::buildQuery(...)
    4. ropenaq::aq_countries()
    5. ropenaq:::getResults(urlAQ, argsList)
    6. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    7. ropenaq:::getResults_bypage(urlAQ, argsList)
    8. ropenaq:::treat_res(res)
    9. dplyr::tbl_df(results)
   11. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   12. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   13. tibble:::recycle_columns(x, .rows, lengths)
   14. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   15. tibble:::update_tibble_attrs(x, ...)
  
  -- 9. Error: The value_from and value_to arguments work as they should (@test-aq
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_measurements(...)
    2. ropenaq:::buildQuery(...)
    3. ropenaq::aq_cities(country = country)
    4. ropenaq:::getResults(urlAQ, argsList)
    5. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    6. ropenaq:::getResults_bypage(urlAQ, argsList)
    7. ropenaq:::treat_res(res)
    8. dplyr::tbl_df(results)
   10. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   11. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   12. tibble:::recycle_columns(x, .rows, lengths)
   13. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   14. tibble:::update_tibble_attrs(x, ...)
  
  -- 10. Error: measurements returns a data.frame (tbl_df) (@test-aq_measurements.
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_measurements(limit = 10, page = 1, city = "Chennai")
    2. ropenaq:::buildQuery(...)
    3. ropenaq::aq_cities(country = country)
    4. ropenaq:::getResults(urlAQ, argsList)
    5. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    6. ropenaq:::getResults_bypage(urlAQ, argsList)
    7. ropenaq:::treat_res(res)
    8. dplyr::tbl_df(results)
   10. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   11. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   12. tibble:::recycle_columns(x, .rows, lengths)
   13. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   14. tibble:::update_tibble_attrs(x, ...)
  
  -- 11. Error: measurements has the right columns (@test-aq_measurements.R#41)  -
  object 'tibble_update_attrs' not found
  Backtrace:
    1. ropenaq::aq_measurements(limit = 10, page = 1, city = "Chennai")
    2. ropenaq:::buildQuery(...)
    3. ropenaq::aq_cities(country = country)
    4. ropenaq:::getResults(urlAQ, argsList)
    5. ropenaq:::getResults_bymorepages(urlAQ, argsList)
    6. ropenaq:::getResults_bypage(urlAQ, argsList)
    7. ropenaq:::treat_res(res)
    8. dplyr::tbl_df(results)
   10. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   11. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   12. tibble:::recycle_columns(x, .rows, lengths)
   13. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   14. tibble:::update_tibble_attrs(x, ...)
  
  -- 12. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(page = 1, country = "PANEM")` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(page = 1, country = "PANEM")
    7. ropenaq:::buildQuery(...)
    9. ropenaq::aq_countries()
   10. ropenaq:::getResults(urlAQ, argsList)
   11. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   12. ropenaq:::getResults_bypage(urlAQ, argsList)
   13. ropenaq:::treat_res(res)
   14. dplyr::tbl_df(results)
   16. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   17. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   18. tibble:::recycle_columns(x, .rows, lengths)
   19. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   20. tibble:::update_tibble_attrs(x, ...)
  
  -- 13. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(page = 1, country = "AD", city = "Barcelona")` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(page = 1, country = "AD", city = "Barcelona")
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_cities(country = country)
    9. ropenaq:::buildQuery(country = country, limit = limit, page = page)
   11. ropenaq::aq_countries()
   12. ropenaq:::getResults(urlAQ, argsList)
   13. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   14. ropenaq:::getResults_bypage(urlAQ, argsList)
   15. ropenaq:::treat_res(res)
   16. dplyr::tbl_df(results)
   18. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   19. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   20. tibble:::recycle_columns(x, .rows, lengths)
   21. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   22. tibble:::update_tibble_attrs(x, ...)
  
  -- 14. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(page = 1, city = "Capitole")` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(page = 1, city = "Capitole")
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_cities(country = country)
    9. ropenaq:::getResults(urlAQ, argsList)
   10. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   11. ropenaq:::getResults_bypage(urlAQ, argsList)
   12. ropenaq:::treat_res(res)
   13. dplyr::tbl_df(results)
   15. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   16. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   17. tibble:::recycle_columns(x, .rows, lengths)
   18. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   19. tibble:::update_tibble_attrs(x, ...)
  
  -- 15. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(page = 1, country = "AD", location = "Nirgendwo")` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(page = 1, country = "AD", location = "Nirgendwo")
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_locations(country = country, city = city)
    9. ropenaq:::buildQuery(...)
   11. ropenaq::aq_countries()
   12. ropenaq:::getResults(urlAQ, argsList)
   13. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   14. ropenaq:::getResults_bypage(urlAQ, argsList)
   15. ropenaq:::treat_res(res)
   16. dplyr::tbl_df(results)
   18. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   19. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   20. tibble:::recycle_columns(x, .rows, lengths)
   21. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   22. tibble:::update_tibble_attrs(x, ...)
  
  -- 16. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(...)` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(...)
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_locations(country = country, city = city)
    9. ropenaq:::buildQuery(...)
   10. ropenaq::aq_cities(country = country)
   11. ropenaq:::buildQuery(country = country, limit = limit, page = page)
   13. ropenaq::aq_countries()
   14. ropenaq:::getResults(urlAQ, argsList)
   15. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   16. ropenaq:::getResults_bypage(urlAQ, argsList)
   17. ropenaq:::treat_res(res)
   18. dplyr::tbl_df(results)
   20. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   21. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   22. tibble:::recycle_columns(x, .rows, lengths)
   23. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   24. tibble:::update_tibble_attrs(x, ...)
  
  -- 17. Failure: Country, city and location are checked for consistency (@test-bu
  `aq_measurements(page = 1, city = "Escaldes-Engordany", location = "Nirgendwo")` threw an error with unexpected message.
  Expected match: "not available within the platform"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(...)
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_locations(country = country, city = city)
    9. ropenaq:::buildQuery(...)
   10. ropenaq::aq_cities(country = country)
   11. ropenaq:::getResults(urlAQ, argsList)
   12. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   13. ropenaq:::getResults_bypage(urlAQ, argsList)
   14. ropenaq:::treat_res(res)
   15. dplyr::tbl_df(results)
   17. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   18. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   19. tibble:::recycle_columns(x, .rows, lengths)
   20. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   21. tibble:::update_tibble_attrs(x, ...)
  
  -- 18. Failure: Parameter has to be available (@test-buildQueries.R#27)  -------
  `aq_measurements(page = 1, country = "AF", parameter = "pm10")` threw an error with unexpected message.
  Expected match: "This parameter is not available for any location corresponding to your query."
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(page = 1, country = "AF", parameter = "pm10")
    7. ropenaq:::buildQuery(...)
    9. ropenaq::aq_countries()
   10. ropenaq:::getResults(urlAQ, argsList)
   11. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   12. ropenaq:::getResults_bypage(urlAQ, argsList)
   13. ropenaq:::treat_res(res)
   14. dplyr::tbl_df(results)
   16. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   17. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   18. tibble:::recycle_columns(x, .rows, lengths)
   19. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   20. tibble:::update_tibble_attrs(x, ...)
  
  -- 19. Failure: Parameter has to be available (@test-buildQueries.R#30)  -------
  `aq_measurements(page = 1, city = "Escaldes-Engordany", parameter = "lalala")` threw an error with unexpected message.
  Expected match: "You asked for an invalid parameter: see list of valid parameters in the Arguments section of the function help"
  Actual message: "object 'tibble_update_attrs' not found"
  Backtrace:
    1. testthat::expect_error(...)
    6. ropenaq::aq_measurements(...)
    7. ropenaq:::buildQuery(...)
    8. ropenaq::aq_cities(country = country)
    9. ropenaq:::getResults(urlAQ, argsList)
   10. ropenaq:::getResults_bymorepages(urlAQ, argsList)
   11. ropenaq:::getResults_bypage(urlAQ, argsList)
   12. ropenaq:::treat_res(res)
   13. dplyr::tbl_df(results)
   15. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   16. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   17. tibble:::recycle_columns(x, .rows, lengths)
   18. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   19. tibble:::update_tibble_attrs(x, ...)
  
  == testthat results  ===========================================================
  [ OK: 11 | SKIPPED: 3 | WARNINGS: 0 | FAILED: 19 ]
  1. Error: cities returns a data.frame (tbl_df) (@test-aq_cities.R#4) 
  2. Error: cities has the right columns (@test-aq_cities.R#16) 
  3. Error: countries returns a data.frame (tbl_df) with attributes (@test-aq_countries.R#4) 
  4. Error: countries has the right columns (@test-aq_countries.R#16) 
  5. Error: latest returns a data.frame (tbl_df) (@test-aq_latest.R#4) 
  6. Error: latest has the right columns (@test-aq_latest.R#27) 
  7. Error: locations returns a data.frame (tbl_df) (@test-aq_locations.R#4) 
  8. Error: locations has the right columns (@test-aq_locations.R#15) 
  9. Error: The value_from and value_to arguments work as they should (@test-aq_measurements.R#4) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted