readSeriesPage: Read a Series Webpage Into an XML object

View source: R/readSeriesPage.R

readSeriesPageR Documentation

Read a Series Webpage Into an XML object

Description

Deprecated - the series pages are no longer used.

Usage

readSeriesPage(series, quiet = TRUE, destDir, deleteFiles, wait = 60)

Arguments

series

Character string giving the name of the data series to retrieve.

quiet

Logical to be passed to utils::download.file.

destDir

File path to a directory in which to place the downloaded spreadsheets. If not specified the value of getOption("RBNZ.destDir") will be checked. If that is NULL too then the files will be placed into tempdir() and deleted on exit.

wait

Numeric giving the number of seconds to wait between downloads. Defaults to 60. Note that this applies to reading the series page and to each individual spreadsheet download, so a series with one spreadsheet would have two downloads sixty seconds apart.

Value

An XML document returned by xml2::read_html containing the webpage pertaining to the desired series.

Author(s)

Jasper Watson


rntq472/RBNZ documentation built on March 26, 2023, 11:58 a.m.