diff --git a/R/get.R b/R/get.R index 8b55a94..4e8e7c0 100644 --- a/R/get.R +++ b/R/get.R @@ -5,7 +5,7 @@ #' @param current_timestamp The current timestamp to keep track of the version of the remote file list. Defaults to the current date. #' #' @return The path to the downloaded XML file. -#' +#' @export #' @examples get_latest_v2_xml() get_latest_v2_xml = function( data_dir = get_data_dir(), diff --git a/man/get_latest_v2_xml.Rd b/man/get_latest_v2_xml.Rd new file mode 100644 index 0000000..2b08b5e --- /dev/null +++ b/man/get_latest_v2_xml.Rd @@ -0,0 +1,29 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/get.R +\name{get_latest_v2_xml} +\alias{get_latest_v2_xml} +\title{Get latest file list from the XML for MITMA open mobiltiy data v2 (2022 onwards)} +\usage{ +get_latest_v2_xml( + data_dir = get_data_dir(), + xml_url = "https://movilidad-opendata.mitma.es/RSS.xml", + current_timestamp = format(Sys.time(), format = "\%Y-\%m-01", usetz = FALSE, tz = + "UTC") +) +} +\arguments{ +\item{data_dir}{The directory where the data is stored. Defaults to the value returned by \code{get_data_dir()}.} + +\item{xml_url}{The URL of the XML file to download. Defaults to "https://movilidad-opendata.mitma.es/RSS.xml".} + +\item{current_timestamp}{The current timestamp to keep track of the version of the remote file list. Defaults to the current date.} +} +\value{ +The path to the downloaded XML file. +} +\description{ +Get latest file list from the XML for MITMA open mobiltiy data v2 (2022 onwards) +} +\examples{ +get_latest_v2_xml() +} diff --git a/man/get_od.Rd b/man/get_od.Rd index 1dbff10..103f666 100644 --- a/man/get_od.Rd +++ b/man/get_od.Rd @@ -7,7 +7,7 @@ get_od( data_dir = get_data_dir(), subdir = "estudios_basicos/por-distritos/viajes/ficheros-diarios", - date_regex = "2024-03-0[1-2]", + date_regex = "2024030[1-2]", read_fun = duckdb::tbl_file ) }