fetchContent: Fetch data using url by three methods

fetchContentR Documentation

Fetch data using url by three methods

Description

Fetch data using url by three methods

Usage

fetchContent(
  url1,
  method = "curl",
  downloadMethod = "auto",
  isJson = TRUE,
  retryTimes = 4
)

Arguments

url1

A url string.

method

Can be chosen from "download", "curl", "fromJSON".

downloadMethod

The same methods from utils::download.file function.

isJson

Fetched content is a json file or not. Defaulst: TRUE.

retryTimes

retry times. Default:4

Value

A json object.


xQTLbiolinks documentation built on Sept. 15, 2023, 1:06 a.m.