download_files: Download specified protocol files from the bundestag website

Description Usage Arguments Value Examples

View source: R/protocol_download.R

Description

Iterates over a vector of links to files and downloads them into the target directory There exist no tests for it, because this function interacts directly with external systems and causing load and expenses for the operator of them. Testing against them is considered bad practice. I could have mocked the server and it's responses, but this is not worth the effort given the fact that this function uses unsupported interfaces anyway.

Usage

1
download_files(links, directory = "./protokolle")

Arguments

links

A vector of characters containing links to the files to download

directory

Directory where the files should be stored

Value

A vector with all paths to the downloaded files

Examples

1
download_files(links = "https://www.bundestag.de/resource/blob/704800/a2bb9229c2e19bbd633d30c747b41c62/19171-data.xml")

bockstaller/dbtprotokoll documentation built on Dec. 31, 2020, 8:56 p.m.