powered by
Extract the name of the file in the URL
get_name(url, format)
A string with URL and the name of the file
The data's format to check the extension
A string with the file's name
# NOT RUN { library(dataesgobr) name <- get_name("archivo-de-datos.csv&rnd=1234", "text/csv") name <- get_name("https://datos.ayto-arganda.es/contratos.pdf", "application/pdf") # }
Run the code above in your browser using DataLab