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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: basicTextGatherer
> ### Title: Cumulate text across callbacks (from an HTTP response)
> ### Aliases: basicTextGatherer multiTextGatherer debugGatherer
> ### Keywords: IO
> 
> ### ** Examples
> 
> if(url.exists("http://www.omegahat.net/RCurl/index.html")) withAutoprint({
+   txt = getURL("http://www.omegahat.net/RCurl/index.html", write = basicTextGatherer())
+ 
+   h = basicTextGatherer()
+   txt = getURL("http://www.omegahat.net/RCurl/index.html", write = h$update)
+     ## Cumulate across pages.
+   txt = getURL("http://www.omegahat.net/index.html", write = h$update)
+ 
+ 
+   headers = basicTextGatherer()
+   txt = getURL("http://www.omegahat.net/RCurl/index.html",
+                header = TRUE, headerfunction = headers$update)
+ 
+      ## Now read the headers.
+   cat(headers$value())
+   headers$reset()
+ 
+ 
+     ## Debugging callback
+   d = debugGatherer()
+   x = getURL("http://www.omegahat.net/RCurl/index.html", debugfunction = d$update, verbose = TRUE)
+   cat(names(d$value()))
+   d$value()[["headerIn"]]
+ 
+ 
+     ## This hangs on Solaris
+   uris = c("http://www.omegahat.net/RCurl/index.html",
+            "http://www.omegahat.net/RCurl/philosophy.html")
+   g = multiTextGatherer(uris)
+   txt = getURIAsynchronous(uris,  write = g)
+   names(txt) # no names this way
+   nchar(txt)
+ 
+    # Now don't use names for the gatherer elements.
+   g = multiTextGatherer(length(uris))
+   txt = getURIAsynchronous(uris,  write = g)
+   names(txt)
+   nchar(txt)
+ })
> txt = getURL("http://www.omegahat.net/RCurl/index.html", write = basicTextGatherer())
> h = basicTextGatherer()
> txt = getURL("http://www.omegahat.net/RCurl/index.html", write = h$update)
> txt = getURL("http://www.omegahat.net/index.html", write = h$update)
> headers = basicTextGatherer()
> txt = getURL("http://www.omegahat.net/RCurl/index.html", header = TRUE, 
+     headerfunction = headers$update)
> cat(headers$value())
HTTP/1.1 200 OK
Date: Tue, 08 Feb 2022 17:56:35 GMT
Server: Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_perl/2.0.11 Perl/v5.16.3
Last-Modified: Sat, 21 Jun 2014 03:27:39 GMT
ETag: "10bc-4fc50312600c0"
Accept-Ranges: bytes
Content-Length: 4284
Content-Type: text/html; charset=UTF-8

> headers$reset()
> d = debugGatherer()
> x = getURL("http://www.omegahat.net/RCurl/index.html", debugfunction = d$update, 
+     verbose = TRUE)
> cat(names(d$value()))
text headerIn headerOut dataIn dataOut sslDataIn sslDataOut> d$value()[["headerIn"]]
[1] "HTTP/1.1 200 OK\r\nDate: Tue, 08 Feb 2022 17:56:35 GMT\r\nServer: Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_perl/2.0.11 Perl/v5.16.3\r\nLast-Modified: Sat, 21 Jun 2014 03:27:39 GMT\r\nETag: \"10bc-4fc50312600c0\"\r\nAccept-Ranges: bytes\r\nContent-Length: 4284\r\nContent-Type: text/html; charset=UTF-8\r\n\r\n"
> uris = c("http://www.omegahat.net/RCurl/index.html", "http://www.omegahat.net/RCurl/philosophy.html")
> g = multiTextGatherer(uris)
> txt = getURIAsynchronous(uris, write = g)
> names(txt)
[1] "http://www.omegahat.net/RCurl/index.html"     
[2] "http://www.omegahat.net/RCurl/philosophy.html"
> nchar(txt)
Error in nchar(txt) : invalid multibyte string, element 2
Calls: withAutoprint -> source -> withVisible -> eval -> eval -> nchar
Execution halted