When a connection is created using open="r", it allows you to read in turn, which is useful for batch processing of large data streams. For example, this script parses the significant gzipped JSON HTTP stream by reading 100 lines at a time. However, unfortunately, R does not support SSL:
> readLines(url("https://api.github.com/repos/jeroenooms/opencpu"))
Error in readLines(url("https://api.github.com/repos/jeroenooms/opencpu")) :
cannot open the connection: unsupported URL scheme
Packages RCurlalso httrsupport HTTPS, but I don’t think they can create a connection object similar to url(). Is there another way to take turns reading an HTTPS connection, similar to the example in the script above?
source
share