When I read in csv files from Dropbox into R, I right-click the file and click share Dropbox link. I then have a URL something like:
None of those answers work for me, but I found an alternative solution that works.
Use the following code to download the file.
read_url_csv <- function(url, ...){
tmpFile <- tempfile()
download.file(url, destfile = tmpFile)
url_csv <- readr::read_csv(tmpFile, ...)
return(url_csv)
}
onedrive_url <- "INSERT LINK COPIED ABOVE"
csv <- read_url_csv(onedrive)