getAdditionalData: Get Additional Data

Description Usage Arguments Value Examples

View source: R/getAdditionalData.R

Description

Retrieves additional data from internet. This can be any file type, but the purpose of this function is to download data such as longitudinal response parameters from an online repository.

Usage

1
2
3
getAdditionalData(fileName,
  repoURL = "http://ecdc.europa.eu/sites/portal/files/documents",
  savePath = NULL)

Arguments

fileName

Name of the file to download. Required.

repoURL

Web address of the remote repository of files to download from. Required. Default = "http://ecdc.europa.eu/sites/portal/files/documents"

savePath

Folder to save the downloaded and unzipped (if needed) file. File is saved only if this argument is not NULL. Optional. Default = NULL.

Value

Data object

Examples

1
2
3
4
5
6
7
## Not run: 
getAdditionalData(fileName = "coxiellaIFAParams4.zip")
getAdditionalData(fileName = "yersiniaSSIParams4.zip")
getAdditionalData(fileName = "coxiellaIFAParams4.zip", savePath = getwd())
getAdditionalData(fileName = "yersiniaSSIParams4.zip", savePath = getwd())

## End(Not run)

seroincidence documentation built on May 2, 2019, 7 a.m.