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

> ### Name: http-headers
> ### Title: Working with HTTP headers
> ### Aliases: http-headers
> 
> ### ** Examples
> 
> (x <- HttpClient$new(url = "https://httpbin.org"))
<crul connection> 
  url: https://httpbin.org
  curl options: 
  proxies: 
  headers: 
> 
> # set headers
> (res <- HttpClient$new(
+   url = "https://httpbin.org",
+   opts = list(
+     verbose = TRUE
+   ),
+   headers = list(
+     a = "stuff",
+     b = "things"
+   )
+ ))
<crul connection> 
  url: https://httpbin.org
  curl options: 
    verbose: TRUE
  proxies: 
  headers: 
    a: stuff
    b: things
> res$headers
$a
[1] "stuff"

$b
[1] "things"

> # reassign header value
> res$headers$a <- "that"
> # define new header
> res$headers$c <- "what"
> # request
> res$get('get')
<crul response> 
  url: https://httpbin.org/get
  request_headers: 
    useragent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
    a: that
    b: things
    c: what
  response_headers: 
    status: HTTP/1.1 200 OK
    server: nginx
    date: Fri, 24 Feb 2017 10:32:43 GMT
    content-type: application/json
    content-length: 311
    connection: keep-alive
    access-control-allow-origin: *
    access-control-allow-credentials: true
  status: 200
> 
> ## setting content-type via headers
> (res <- HttpClient$new(
+   url = "https://httpbin.org",
+   opts = list(
+     verbose = TRUE
+   ),
+   headers = list(`Content-Type` = "application/json")
+ ))
<crul connection> 
  url: https://httpbin.org
  curl options: 
    verbose: TRUE
  proxies: 
  headers: 
    Content-Type: application/json
> res$get('get')
<crul response> 
  url: https://httpbin.org/get
  request_headers: 
    useragent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
    Content-Type: application/json
  response_headers: 
    status: HTTP/1.1 200 OK
    server: nginx
    date: Fri, 24 Feb 2017 10:32:44 GMT
    content-type: application/json
    content-length: 296
    connection: keep-alive
    access-control-allow-origin: *
    access-control-allow-credentials: true
  status: 200
> 
> 
> 
> cleanEx()
> nameEx("post-requests")
> ### * post-requests
> 
> flush(stderr()); flush(stdout())
* Found bundle for host httpbin.org: 0x953a770 [can pipeline]
* Re-using existing connection! (#0) with host httpbin.org
* Connected to httpbin.org (23.22.14.18) port 443 (#0)
> GET /get HTTP/1.1
Host: httpbin.org
User-Agent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
Accept: */*
Accept-Encoding: gzip, deflate
a: that
b: things
c: what

< HTTP/1.1 200 OK
< Server: nginx
< Date: Fri, 24 Feb 2017 10:32:43 GMT
< Content-Type: application/json
< Content-Length: 311
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< 
* Curl_http_done: called premature == 0
* Connection #0 to host httpbin.org left intact
* Found bundle for host httpbin.org: 0x953a770 [can pipeline]
* Re-using existing connection! (#0) with host httpbin.org
* Connected to httpbin.org (23.22.14.18) port 443 (#0)
> GET /get HTTP/1.1
Host: httpbin.org
User-Agent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
Accept: */*
Accept-Encoding: gzip, deflate
Content-Type: application/json

< HTTP/1.1 200 OK
< Server: nginx
< Date: Fri, 24 Feb 2017 10:32:44 GMT
< Content-Type: application/json
< Content-Length: 296
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< 
* Curl_http_done: called premature == 0
* Connection #0 to host httpbin.org left intact
> 
> ### Name: post-requests
> ### Title: HTTP POST/PUT/PATCH requests
> ### Aliases: post-requests
> 
> ### ** Examples
> 
> (x <- HttpClient$new(url = "https://httpbin.org"))
<crul connection> 
  url: https://httpbin.org
  curl options: 
  proxies: 
  headers: 
> 
> # post request
> (res_post <- x$post('post', body = list(hello = "world")))
<crul response> 
  url: https://httpbin.org/post
  request_headers: 
    useragent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
  response_headers: 
    status: HTTP/1.1 200 OK
    server: nginx
    date: Fri, 24 Feb 2017 10:32:44 GMT
    content-type: application/json
    content-length: 468
    connection: keep-alive
    access-control-allow-origin: *
    access-control-allow-credentials: true
  status: 200
> 
> ## empty body request
> x$post('post')
<crul response> 
  url: https://httpbin.org/post
  request_headers: 
    useragent: libcurl/7.51.0 r-curl/2.3 crul/0.3.0
    Content-Type: 
  response_headers: 
    status: HTTP/1.1 200 OK
    server: nginx
    date: Fri, 24 Feb 2017 10:32:44 GMT
    content-type: application/json
    content-length: 347
    connection: keep-alive
    access-control-allow-origin: *
    access-control-allow-credentials: true
  status: 200
> 
> ## form requests
> (cli <- HttpClient$new(
+   url = "http://apps.kew.org/wcsp/advsearch.do"
+ ))
<crul connection> 
  url: http://apps.kew.org/wcsp/advsearch.do
  curl options: 
  proxies: 
  headers: 
> cli$post(
+   encode = "form",
+   body = list(
+     page = 'advancedSearch',
+     genus = 'Gagea',
+     species = 'pratensis',
+     selectedLevel = 'cont'
+   )
+ )
Error in curl::curl_fetch_memory(x$url$url, handle = x$url$handle) : 
  Timeout was reached
Calls: <Anonymous> -> <Anonymous> -> crul_fetch -> <Anonymous> -> .Call
Execution halted