Running 'testthat.R' [9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > ## load dependencies
  > library(testthat)
  > library(qrandom)
  > 
  > check_qrng <- function(){
  +   tryCatch(
  +     expr = {
  +       req <- curl::curl_fetch_memory('https://qrng.anu.edu.au/')
  +       req$status_code
  +     },
  +     error = function(e){
  +       -1
  +     }
  +   )
  + }
  > 
  > ## test package separated with filter due to limited Travis-CI build time
  > if(curl::has_internet() && check_qrng() == 200){
  +   test_check('qrandom', filter = "qrandom")
  +   test_check('qrandom', filter = "qrandomunif")
  +   test_check('qrandom', filter = "qrandomnorm")
  +   test_check('qrandom', filter = "qUUID")
  +   test_check('qrandom', filter = "qrandommaxint")
  + }
  == Warnings ====================================================================
  -- Warning (test-qrandom.R:4:3): qrandom ---------------------------------------
  URL 'https://qrng.anu.edu.au/API/jsonI.php?length=1&type=uint8': status was 'SSL connect error'
  Backtrace:
   1. qrandom::qrandom() test-qrandom.R:4:2
   2. qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   3. qrandom:::getConnection(website = urltxt, open = "r")
   4. base::url(website, ..., method = "libcurl")
  -- Warning (test-qrandommaxint.R:16:3): qrandommaxint() gives expected output --
  URL 'https://qrng.anu.edu.au/API/jsonI.php?length=2&type=hex16&size=4': status was 'SSL connect error'
  Backtrace:
   1. qrandom::qrandommaxint(2) test-qrandommaxint.R:16:2
   2. qrandom::qrandom(n = n, type = "hex16", blocksize = 4)
   3. qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   4. qrandom:::getConnection(website = urltxt, open = "r")
   5. base::url(website, ..., method = "libcurl")
  -- Warning (test-qrandomnorm.R:4:3): qrandomnorm -------------------------------
  URL 'https://qrng.anu.edu.au/API/jsonI.php?length=10&type=hex16&size=7': status was 'SSL connect error'
  Backtrace:
   1. qrandom::qrandomnorm(10) test-qrandomnorm.R:4:2
   2. qrandom::qrandomunif(n = n)
   3. qrandom::qrandom(n = n, type = "hex16", blocksize = 7)
   4. qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   5. qrandom:::getConnection(website = urltxt, open = "r")
   6. base::url(website, ..., method = "libcurl")
  -- Warning (test-qrandomunif.R:4:3): qrandomunif -------------------------------
  URL 'https://qrng.anu.edu.au/API/jsonI.php?length=10&type=hex16&size=7': status was 'SSL connect error'
  Backtrace:
   1. qrandom::qrandomunif(10) test-qrandomunif.R:4:2
   2. qrandom::qrandom(n = n, type = "hex16", blocksize = 7)
   3. qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   4. qrandom:::getConnection(website = urltxt, open = "r")
   5. base::url(website, ..., method = "libcurl")
  
  == Failed tests ================================================================
  -- Error (test-qrandom.R:4:3): qrandom -----------------------------------------
  Error: cannot open the connection to 'https://qrng.anu.edu.au/API/jsonI.php?length=1&type=uint8'
  Backtrace:
      x
   1. \-qrandom::qrandom() test-qrandom.R:4:2
   2.   \-qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   3.     \-qrandom:::getConnection(website = urltxt, open = "r")
   4.       \-base::url(website, ..., method = "libcurl")
  -- Error (test-qrandommaxint.R:16:3): qrandommaxint() gives expected output ----
  Error: cannot open the connection to 'https://qrng.anu.edu.au/API/jsonI.php?length=2&type=hex16&size=4'
  Backtrace:
      x
   1. \-qrandom::qrandommaxint(2) test-qrandommaxint.R:16:2
   2.   \-qrandom::qrandom(n = n, type = "hex16", blocksize = 4)
   3.     \-qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   4.       \-qrandom:::getConnection(website = urltxt, open = "r")
   5.         \-base::url(website, ..., method = "libcurl")
  -- Error (test-qrandomnorm.R:4:3): qrandomnorm ---------------------------------
  Error: cannot open the connection to 'https://qrng.anu.edu.au/API/jsonI.php?length=10&type=hex16&size=7'
  Backtrace:
      x
   1. \-qrandom::qrandomnorm(10) test-qrandomnorm.R:4:2
   2.   \-qrandom::qrandomunif(n = n)
   3.     \-qrandom::qrandom(n = n, type = "hex16", blocksize = 7)
   4.       \-qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   5.         \-qrandom:::getConnection(website = urltxt, open = "r")
   6.           \-base::url(website, ..., method = "libcurl")
  -- Error (test-qrandomunif.R:4:3): qrandomunif ---------------------------------
  Error: cannot open the connection to 'https://qrng.anu.edu.au/API/jsonI.php?length=10&type=hex16&size=7'
  Backtrace:
      x
   1. \-qrandom::qrandomunif(10) test-qrandomunif.R:4:2
   2.   \-qrandom::qrandom(n = n, type = "hex16", blocksize = 7)
   3.     \-qrandom:::get_sequence(n = n, type = type, blocksize = blocksize)
   4.       \-qrandom:::getConnection(website = urltxt, open = "r")
   5.         \-base::url(website, ..., method = "libcurl")
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 9 ]
  Error: Test failures
  Execution halted