CRAN Package Check Results for Package httr

Last updated on 2019-03-14 00:46:40 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.0 6.30 43.18 49.48 OK
r-devel-linux-x86_64-debian-gcc 1.4.0 5.55 38.32 43.87 OK
r-devel-linux-x86_64-fedora-clang 1.4.0 66.84 OK
r-devel-linux-x86_64-fedora-gcc 1.4.0 63.39 OK
r-devel-windows-ix86+x86_64 1.4.0 16.00 98.00 114.00 OK
r-patched-linux-x86_64 1.4.0 4.74 38.56 43.30 OK
r-patched-solaris-x86 1.4.0 68.50 OK
r-release-linux-x86_64 OK
r-release-windows-ix86+x86_64 1.4.0 12.00 83.00 95.00 ERROR
r-release-osx-x86_64 1.4.0 OK
r-oldrel-windows-ix86+x86_64 1.4.0 9.00 113.00 122.00 OK
r-oldrel-osx-x86_64 1.4.0 OK

Check Details

Version: 1.4.0
Check: examples
Result: ERROR
    Running examples in 'httr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: config
    > ### Title: Set curl options.
    > ### Aliases: config
    >
    > ### ** Examples
    >
    > # There are a number of ways to modify the configuration of a request
    > # * you can add directly to a request
    > HEAD("https://www.google.com", verbose())
    -> HEAD / HTTP/1.1
    -> Host: www.google.com
    -> User-Agent: libcurl/7.59.0 r-curl/3.3 httr/1.4.0
    -> Accept-Encoding: gzip, deflate
    -> Cookie: 1P_JAR=2019-03-12-07; NID=162=YQyN-J3-uNclkstCcG5_0fiCZpI5UPZ2pO6bcTt9rJXAgDQMHnXLJC4VQIAKTaOQSgiYYcsAAHsEc_hWDZfjt1IaSHIP-v7ssClIob3S_Pwjvb1TRUx8e-EugGKi9n6hWuRubM3c2Asjti0dcXK1wwfGBAxE0co_P_ttrSGdeNA
    -> Accept: application/json, text/xml, application/xml, */*
    ->
    <- HTTP/1.1 200 OK
    <- Date: Tue, 12 Mar 2019 07:46:15 GMT
    <- Expires: -1
    <- Cache-Control: private, max-age=0
    <- Content-Type: text/html; charset=ISO-8859-1
    <- Content-Encoding: gzip
    <- Server: gws
    <- X-XSS-Protection: 1; mode=block
    <- X-Frame-Options: SAMEORIGIN
    <- Set-Cookie: 1P_JAR=2019-03-12-07; expires=Thu, 11-Apr-2019 07:46:15 GMT; path=/; domain=.google.com
    <- Transfer-Encoding: chunked
    <- Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
    <-
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    >
    > # * you can wrap with with_config()
    > with_config(verbose(), HEAD("https://www.google.com"))
    -> HEAD / HTTP/1.1
    -> Host: www.google.com
    -> User-Agent: libcurl/7.59.0 r-curl/3.3 httr/1.4.0
    -> Accept-Encoding: gzip, deflate
    -> Cookie: 1P_JAR=2019-03-12-07; NID=162=YQyN-J3-uNclkstCcG5_0fiCZpI5UPZ2pO6bcTt9rJXAgDQMHnXLJC4VQIAKTaOQSgiYYcsAAHsEc_hWDZfjt1IaSHIP-v7ssClIob3S_Pwjvb1TRUx8e-EugGKi9n6hWuRubM3c2Asjti0dcXK1wwfGBAxE0co_P_ttrSGdeNA
    -> Accept: application/json, text/xml, application/xml, */*
    ->
    <- HTTP/1.1 200 OK
    <- Date: Tue, 12 Mar 2019 07:46:16 GMT
    <- Expires: -1
    <- Cache-Control: private, max-age=0
    <- Content-Type: text/html; charset=ISO-8859-1
    <- Content-Encoding: gzip
    <- Server: gws
    <- X-XSS-Protection: 1; mode=block
    <- X-Frame-Options: SAMEORIGIN
    <- Set-Cookie: 1P_JAR=2019-03-12-07; expires=Thu, 11-Apr-2019 07:46:16 GMT; path=/; domain=.google.com
    <- Transfer-Encoding: chunked
    <- Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
    <-
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    >
    > # * you can set global with set_config()
    > old <- set_config(verbose())
    > HEAD("https://www.google.com")
    -> HEAD / HTTP/1.1
    -> Host: www.google.com
    -> User-Agent: libcurl/7.59.0 r-curl/3.3 httr/1.4.0
    -> Accept-Encoding: gzip, deflate
    -> Cookie: 1P_JAR=2019-03-12-07; NID=162=YQyN-J3-uNclkstCcG5_0fiCZpI5UPZ2pO6bcTt9rJXAgDQMHnXLJC4VQIAKTaOQSgiYYcsAAHsEc_hWDZfjt1IaSHIP-v7ssClIob3S_Pwjvb1TRUx8e-EugGKi9n6hWuRubM3c2Asjti0dcXK1wwfGBAxE0co_P_ttrSGdeNA
    -> Accept: application/json, text/xml, application/xml, */*
    ->
    <- HTTP/1.1 200 OK
    <- Date: Tue, 12 Mar 2019 07:46:16 GMT
    <- Expires: -1
    <- Cache-Control: private, max-age=0
    <- Content-Type: text/html; charset=ISO-8859-1
    <- Content-Encoding: gzip
    <- Server: gws
    <- X-XSS-Protection: 1; mode=block
    <- X-Frame-Options: SAMEORIGIN
    <- Set-Cookie: 1P_JAR=2019-03-12-07; expires=Thu, 11-Apr-2019 07:46:16 GMT; path=/; domain=.google.com
    <- Transfer-Encoding: chunked
    <- Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
    <-
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    > # and re-establish the previous settings with
    > set_config(old, override = TRUE)
    > HEAD("https://www.google.com")
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    > # or
    > reset_config()
    > HEAD("https://www.google.com")
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    >
    > # If available, you should use a friendly httr wrapper over RCurl
    > # options. But you can pass Curl options (as listed in httr_options())
    > # in config
    > HEAD("https://www.google.com/", config(verbose = TRUE))
    Response [https://www.google.com/]
     Date: 2019-03-12 07:46
     Status: 200
     Content-Type: text/html; charset=ISO-8859-1
    <EMPTY BODY>
    >
    >
    >
    > cleanEx()
    > nameEx("content")
    > ### * content
    >
    > flush(stderr()); flush(stdout())
    * Found bundle for host www.google.com: 0x883fd60 [can pipeline]
    * Re-using existing connection! (#8) with host www.google.com
    * Connected to www.google.com (216.58.205.228) port 443 (#8)
    > HEAD / HTTP/1.1
    Host: www.google.com
    User-Agent: libcurl/7.59.0 r-curl/3.3 httr/1.4.0
    Accept-Encoding: gzip, deflate
    Cookie: 1P_JAR=2019-03-12-07; NID=162=YQyN-J3-uNclkstCcG5_0fiCZpI5UPZ2pO6bcTt9rJXAgDQMHnXLJC4VQIAKTaOQSgiYYcsAAHsEc_hWDZfjt1IaSHIP-v7ssClIob3S_Pwjvb1TRUx8e-EugGKi9n6hWuRubM3c2Asjti0dcXK1wwfGBAxE0co_P_ttrSGdeNA
    Accept: application/json, text/xml, application/xml, */*
    
    < HTTP/1.1 200 OK
    < Date: Tue, 12 Mar 2019 07:46:16 GMT
    < Expires: -1
    < Cache-Control: private, max-age=0
    < Content-Type: text/html; charset=ISO-8859-1
    < Content-Encoding: gzip
    < Server: gws
    < X-XSS-Protection: 1; mode=block
    < X-Frame-Options: SAMEORIGIN
    * Replaced cookie 1P_JAR="2019-03-12-07" for domain google.com, path /, expire 1554968776
    < Set-Cookie: 1P_JAR=2019-03-12-07; expires=Thu, 11-Apr-2019 07:46:16 GMT; path=/; domain=.google.com
    < Transfer-Encoding: chunked
    < Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
    <
    * Connection #8 to host www.google.com left intact
    >
    > ### Name: content
    > ### Title: Extract content from a request.
    > ### Aliases: content text_content parsed_content
    >
    > ### ** Examples
    >
    > r <- POST("http://httpbin.org/post", body = list(a = 1, b = 2))
    > content(r) # automatically parses JSON
    $args
    named list()
    
    $data
    [1] ""
    
    $files
    named list()
    
    $form
    $form$a
    [1] "1"
    
    $form$b
    [1] "2"
    
    
    $headers
    $headers$Accept
    [1] "application/json, text/xml, application/xml, */*"
    
    $headers$`Accept-Encoding`
    [1] "gzip, deflate"
    
    $headers$`Content-Length`
    [1] "228"
    
    $headers$`Content-Type`
    [1] "multipart/form-data; boundary=------------------------79768ef4ab85e62e"
    
    $headers$Host
    [1] "httpbin.org"
    
    $headers$`User-Agent`
    [1] "libcurl/7.59.0 r-curl/3.3 httr/1.4.0"
    
    
    $json
    NULL
    
    $origin
    [1] "129.217.207.166, 129.217.207.166"
    
    $url
    [1] "https://httpbin.org/post"
    
    > cat(content(r, "text"), "\n") # text content
    No encoding supplied: defaulting to UTF-8.
    {
     "args": {},
     "data": "",
     "files": {},
     "form": {
     "a": "1",
     "b": "2"
     },
     "headers": {
     "Accept": "application/json, text/xml, application/xml, */*",
     "Accept-Encoding": "gzip, deflate",
     "Content-Length": "228",
     "Content-Type": "multipart/form-data; boundary=------------------------79768ef4ab85e62e",
     "Host": "httpbin.org",
     "User-Agent": "libcurl/7.59.0 r-curl/3.3 httr/1.4.0"
     },
     "json": null,
     "origin": "129.217.207.166, 129.217.207.166",
     "url": "https://httpbin.org/post"
    }
    
    > content(r, "raw") # raw bytes from server
     [1] 7b 0a 20 20 22 61 72 67 73 22 3a 20 7b 7d 2c 20 0a 20 20 22 64 61 74 61 22
     [26] 3a 20 22 22 2c 20 0a 20 20 22 66 69 6c 65 73 22 3a 20 7b 7d 2c 20 0a 20 20
     [51] 22 66 6f 72 6d 22 3a 20 7b 0a 20 20 20 20 22 61 22 3a 20 22 31 22 2c 20 0a
     [76] 20 20 20 20 22 62 22 3a 20 22 32 22 0a 20 20 7d 2c 20 0a 20 20 22 68 65 61
    [101] 64 65 72 73 22 3a 20 7b 0a 20 20 20 20 22 41 63 63 65 70 74 22 3a 20 22 61
    [126] 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 2c 20 74 65 78 74 2f 78 6d 6c
    [151] 2c 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 6d 6c 2c 20 2a 2f 2a 22 2c 20
    [176] 0a 20 20 20 20 22 41 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 22 3a 20 22
    [201] 67 7a 69 70 2c 20 64 65 66 6c 61 74 65 22 2c 20 0a 20 20 20 20 22 43 6f 6e
    [226] 74 65 6e 74 2d 4c 65 6e 67 74 68 22 3a 20 22 32 32 38 22 2c 20 0a 20 20 20
    [251] 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 3a 20 22 6d 75 6c 74 69 70 61
    [276] 72 74 2f 66 6f 72 6d 2d 64 61 74 61 3b 20 62 6f 75 6e 64 61 72 79 3d 2d 2d
    [301] 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 37 39 37
    [326] 36 38 65 66 34 61 62 38 35 65 36 32 65 22 2c 20 0a 20 20 20 20 22 48 6f 73
    [351] 74 22 3a 20 22 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22
    [376] 55 73 65 72 2d 41 67 65 6e 74 22 3a 20 22 6c 69 62 63 75 72 6c 2f 37 2e 35
    [401] 39 2e 30 20 72 2d 63 75 72 6c 2f 33 2e 33 20 68 74 74 72 2f 31 2e 34 2e 30
    [426] 22 0a 20 20 7d 2c 20 0a 20 20 22 6a 73 6f 6e 22 3a 20 6e 75 6c 6c 2c 20 0a
    [451] 20 20 22 6f 72 69 67 69 6e 22 3a 20 22 31 32 39 2e 32 31 37 2e 32 30 37 2e
    [476] 31 36 36 2c 20 31 32 39 2e 32 31 37 2e 32 30 37 2e 31 36 36 22 2c 20 0a 20
    [501] 20 22 75 72 6c 22 3a 20 22 68 74 74 70 73 3a 2f 2f 68 74 74 70 62 69 6e 2e
    [526] 6f 72 67 2f 70 6f 73 74 22 0a 7d 0a
    >
    > rlogo <- content(GET("http://cran.r-project.org/Rlogo.jpg"))
    Error in is.response(x) :
     Timeout was reached: Connection timed out after 10000 milliseconds
    Calls: content ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted
Flavor: r-release-windows-ix86+x86_64