get_file: Get file

View source: R/get_file.R

get_fileR Documentation

Get file

Description

This function get files

Usage

get_file(url, export, limit = 3600)

Arguments

url

URL of the file to be downloaded

export

File path where the file should be saved

limit

Timeout limit (in seconds)

Value

The path to the file

Examples

## Not run: 
git <- "https://github.com/"
org <- "taxonomicallyinformedannotation"
repo <- "tima-example-files"
branch <- "main"
file <- "example_metadata.tsv"
get_file(
  url = paste(git, org, repo, "raw", branch, file, sep = "/"),
  export = "data/source/example_metadata.tsv"
)

## End(Not run)

taxonomicallyinformedannotation/tima-r documentation built on Feb. 28, 2025, 10:10 a.m.