Running examples in ‘crul-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: HttpClient
> ### Title: HTTP client
> ### Aliases: HttpClient
> ### Keywords: datasets
> 
> ### ** Examples
> 
> (x <- HttpClient$new(url = "https://httpbin.org"))
<crul connection> 
  url: https://httpbin.org
  curl options: 
  proxies: 
  auth: 
  headers: 
> x$url
[1] "https://httpbin.org"
> (res_get1 <- x$get('get'))
<crul response> 
  url: https://httpbin.org/get
  request_headers: 
    User-Agent: libcurl/7.58.0 r-curl/3.2 crul/0.5.2
    Accept-Encoding: gzip, deflate
    Accept: application/json, text/xml, application/xml, */*
  response_headers: 
    status: HTTP/1.1 503 Service Unavailable
    connection: keep-alive
    server: Cowboy
    date: Wed, 09 May 2018 05:24:39 GMT
    content-length: 506
    content-type: text/html; charset=utf-8
    cache-control: no-cache, no-store
  status: 503
> res_get1$content
  [1] 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 0a 09 3c 68 74 6d 6c 3e 0a 09
 [26] 20 20 3c 68 65 61 64 3e 0a 09 09 3c 6d 65 74 61 20 6e 61 6d 65 3d 22 76 69
 [51] 65 77 70 6f 72 74 22 20 63 6f 6e 74 65 6e 74 3d 22 77 69 64 74 68 3d 64 65
 [76] 76 69 63 65 2d 77 69 64 74 68 2c 20 69 6e 69 74 69 61 6c 2d 73 63 61 6c 65
[101] 3d 31 22 3e 0a 09 09 3c 6d 65 74 61 20 63 68 61 72 73 65 74 3d 22 75 74 66
[126] 2d 38 22 3e 0a 09 09 3c 74 69 74 6c 65 3e 41 70 70 6c 69 63 61 74 69 6f 6e
[151] 20 45 72 72 6f 72 3c 2f 74 69 74 6c 65 3e 0a 09 09 3c 73 74 79 6c 65 20 6d
[176] 65 64 69 61 3d 22 73 63 72 65 65 6e 22 3e 0a 09 09 20 20 68 74 6d 6c 2c 62
[201] 6f 64 79 2c 69 66 72 61 6d 65 20 7b 0a 09 09 09 6d 61 72 67 69 6e 3a 20 30
[226] 3b 0a 09 09 09 70 61 64 64 69 6e 67 3a 20 30 3b 0a 09 09 20 20 7d 0a 09 09
[251] 20 20 68 74 6d 6c 2c 62 6f 64 79 20 7b 0a 09 09 09 68 65 69 67 68 74 3a 20
[276] 31 30 30 25 3b 0a 09 09 09 6f 76 65 72 66 6c 6f 77 3a 20 68 69 64 64 65 6e
[301] 3b 0a 09 09 20 20 7d 0a 09 09 20 20 69 66 72 61 6d 65 20 7b 0a 09 09 09 77
[326] 69 64 74 68 3a 20 31 30 30 25 3b 0a 09 09 09 68 65 69 67 68 74 3a 20 31 30
[351] 30 25 3b 0a 09 09 09 62 6f 72 64 65 72 3a 20 30 3b 0a 09 09 20 20 7d 0a 09
[376] 09 3c 2f 73 74 79 6c 65 3e 0a 09 20 20 3c 2f 68 65 61 64 3e 0a 09 20 20 3c
[401] 62 6f 64 79 3e 0a 09 09 3c 69 66 72 61 6d 65 20 73 72 63 3d 22 2f 2f 77 77
[426] 77 2e 68 65 72 6f 6b 75 63 64 6e 2e 63 6f 6d 2f 65 72 72 6f 72 2d 70 61 67
[451] 65 73 2f 61 70 70 6c 69 63 61 74 69 6f 6e 2d 65 72 72 6f 72 2e 68 74 6d 6c
[476] 22 3e 3c 2f 69 66 72 61 6d 65 3e 0a 09 20 20 3c 2f 62 6f 64 79 3e 0a 09 3c
[501] 2f 68 74 6d 6c 3e
> res_get1$response_headers
$status
[1] "HTTP/1.1 503 Service Unavailable"

$connection
[1] "keep-alive"

$server
[1] "Cowboy"

$date
[1] "Wed, 09 May 2018 05:24:39 GMT"

$`content-length`
[1] "506"

$`content-type`
[1] "text/html; charset=utf-8"

$`cache-control`
[1] "no-cache, no-store"

> res_get1$parse()
No encoding supplied: defaulting to UTF-8.
[1] "<!DOCTYPE html>\n\t<html>\n\t  <head>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Application Error</title>\n\t\t<style media=\"screen\">\n\t\t  html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t  }\n\t\t  html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t  }\n\t\t  iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t  }\n\t\t</style>\n\t  </head>\n\t  <body>\n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\"></iframe>\n\t  </body>\n\t</html>"
> 
> (res_get2 <- x$get('get', query = list(hello = "world")))
<crul response> 
  url: https://httpbin.org/get?hello=world
  request_headers: 
    User-Agent: libcurl/7.58.0 r-curl/3.2 crul/0.5.2
    Accept-Encoding: gzip, deflate
    Accept: application/json, text/xml, application/xml, */*
  response_headers: 
    status: HTTP/1.1 503 Service Unavailable
    connection: keep-alive
    server: Cowboy
    date: Wed, 09 May 2018 05:25:26 GMT
    content-length: 506
    content-type: text/html; charset=utf-8
    cache-control: no-cache, no-store
  params: 
    hello: world
  status: 503
> res_get2$parse()
No encoding supplied: defaulting to UTF-8.
[1] "<!DOCTYPE html>\n\t<html>\n\t  <head>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Application Error</title>\n\t\t<style media=\"screen\">\n\t\t  html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t  }\n\t\t  html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t  }\n\t\t  iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t  }\n\t\t</style>\n\t  </head>\n\t  <body>\n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\"></iframe>\n\t  </body>\n\t</html>"
> library("jsonlite")
> jsonlite::fromJSON(res_get2$parse())
No encoding supplied: defaulting to UTF-8.
Error: lexical error: invalid char in json text.
                                       <!DOCTYPE html> 	<html> 	  <hea
                     (right here) ------^
Execution halted