downloadIfNeeded {cTRAP} | R Documentation

## Download data if a file does not exist

### Description

Download data if a file does not exist

### Usage

    downloadIfNeeded(file, link, gz = TRUE)

### Arguments

`file` | Character: filepath
`link` | Character: link to download file
`gz` | Boolean: is downloaded file compressed?

### Value

Download file if a file does not exist

[Package cTRAP version 1.2.0 Index]