This function allows you to retrieve data from a URL into raw format, which can then be passed into the appropriate file-reading function, such as arrow::read_parquet()

raw_from_url(url)

Arguments

url

a character url

Value

a raw vector

Examples

# \donttest{ head(raw_from_url( "https://github.com/nflverse/nflfastR-data/raw/master/data/play_by_play_2020.parquet" ), 50)
#> [1] 50 41 52 31 15 04 15 f0 d8 04 15 80 b2 02 4c 15 8e 4b 15 04 12 00 00 b8 ac #> [26] 02 00 00 05 01 04 f0 3f 05 07 08 80 43 40 05 08 04 00 4b 09 08 04 40 57 09
# }