Skip to contents

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)

Arguments

url

a character url

Value

a raw vector

Examples

# \donttest{
head(raw_from_url(
  "https://github.com/nflverse/nflverse-data/releases/download/player_stats/player_stats.parquet"
  ),
50)
#>  [1] 50 41 52 31 15 04 15 c0 b6 06 15 e2 ad 02 4c 15 e0 3a 15 04 12 00 00 a0 9b
#> [26] 03 1c 0a 00 00 00 30 30 2d 30 05 01 00 33 32 0e 00 00 37 1d 0e 08 31 30 34
# }