retrieve_content: Opens a stream (i.e., connection) to retrieve content...

Description Usage Arguments Value Examples

View source: R/retrieve_content.R

Description

Opens a stream (i.e., connection) to retrieve content associated with content_hash

Usage

1
2

Arguments

content_hash

content hash of requested content

hash2url

function that maps a content hash to a url

Value

a stream (i.e., connection) of requested content

Examples

1
2
3
4
 con <- retrieve_content(query())
 first_line <- readLines(con, 1)
 close(con)
 # first line should start with <https://preston.guoda...

jhpoelen/reston documentation built on April 11, 2020, 11:51 a.m.