if (FALSE) {
dataset_url <- "https://example.com/dataset.csv"
tmp <- tempfile(fileext = ".csv")
success <- download_file_gracefully(dataset_url, tmp)
if (!success) {
message("Continuing gracefully without the dataset.")
}
}
Run the code above in your browser using DataLab