Internal function (not exported - i.e. not userfacing) to reduce code duplication

generic_download(path = rstudioapi::selectDirectory(), dataset)

Arguments

path

Run with no arguments to pick a directory interactively. Path on your computer where the file(s) should be saved to string

dataset

The name of the file to save