Running 'testthat.R' [1s/1s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gesis)
  > 
  > test_check("gesis")
  -- 1. Error: get_study_groups() works (@test-availability.R#4)  ----------------
  Failed to connect to dbk.gesis.org port 443: Connection refused
  1: get_study_groups() at testthat/test-availability.R:4
  2: read_html(url)
  3: read_html.default(url)
  4: suppressWarnings(read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options))
  5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  6: read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
  7: read_xml.character(x, encoding = encoding, ..., as_html = TRUE, options = options)
  8: read_xml.connection(con, encoding = encoding, ..., as_html = as_html, base_url = x, 
         options = options)
  9: open(x, "rb")
  10: open.connection(x, "rb")
  
  -- 2. Error: get_datasets() works (@test-availability.R#10)  -------------------
  Failed to connect to dbk.gesis.org port 443: Connection refused
  1: get_datasets("0001") at testthat/test-availability.R:10
  2: read_html(url)
  3: read_html.default(url)
  4: suppressWarnings(read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options))
  5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  6: read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
  7: read_xml.character(x, encoding = encoding, ..., as_html = TRUE, options = options)
  8: read_xml.connection(con, encoding = encoding, ..., as_html = as_html, base_url = x, 
         options = options)
  9: open(x, "rb")
  10: open.connection(x, "rb")
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 FAILED: 2
  1. Error: get_study_groups() works (@test-availability.R#4) 
  2. Error: get_datasets() works (@test-availability.R#10) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In for (i in 2:(n - 1)) { :
    closing unused connection 3 (https://dbk.gesis.org/dbksearch/GDESC2.asp?db=e&no=0001)
  Execution halted