retrieveURL function

Retries a URL

Retries a URL

retrieveURL(data, species, outputFormat, maxRetries = 3, successCode = 200)

Arguments

  • data: A gene list
  • species: The taxonomy name/id. Default is "9606" for Homo sapiens
  • outputFormat: format of the output. Can be "highres_image", "tsv", "json", "tsv-no-header", "xml"
  • maxRetries: maximum number of attempts to connect to the STRING api.
  • successCode: Status code number that represents success

Returns

either the output of httr::GET or an error message

Author(s)

Waldir Leoncio

  • Maintainer: Waldir Leoncio
  • License: MIT + file LICENSE
  • Last published: 2023-11-06