get_csv.Rd
get_csv()
allows you to directly download CSV files from the web. You can download CSV data for a specific location range or date range.
get_csv(
url,
username,
password,
location_min,
location_max,
date_min,
date_max,
download_path,
show_message = FALSE
)
A character string specifying the URL to log into.
A character string specifying the username for login.
A character string specifying the password for login.
A character string specifying the minimum location.
A character string specifying the maximum location.
A Date object specifying the earliest date.
A Date object specifying the latest date.
A character string specifying the path where the downloaded CSV file should be saved.
A logical value. If TRUE, a message will be displayed after the download. Default is FALSE.
CSVs in the path of download_path.
# Download CSV data for a specific location range or date range.
get_csv(url = Sys.getenv("url"),
username = Sys.getenv("username"),
password = Sys.getenv("password"),
location_min = "607",
location_max = "608",
date_min = "2024-02-18",
date_max = "2024-02-19",
download_path = "C:/Users/Dell/Downloads/download_temp",
show_message = TRUE)
#> ● Locations: 607_608 and Dates: 2024-02-18_2024-02-19 downloaded