Learn R Programming

nflreadr (version 1.4.1)

raw_from_url: Load raw filedata from a remote connection

Description

This function allows you to retrieve data from a URL into raw format, which can then be passed into the appropriate file-reading function. Data is memoised/cached for 24 hours.

Usage

raw_from_url(url)

Value

a raw vector

Arguments

url

a character url

Examples

Run this code
.for_cran()
# \donttest{
try({ # prevents CRAN errors
head(raw_from_url(
  "https://github.com/nflverse/nflverse-data/releases/download/test/combines.rds"
  ),
50)
})
# }

Run the code above in your browser using DataLab