orcid_icon_fetcher: Download ORCID icon

View source: R/orcid_icon_fetcher.R

orcid_icon_fetcherR Documentation

Download ORCID icon

Description

A simple wrapper for download.file to download the official ORCID icon for use in a repository with authenticated ORCID IDs.

Usage

orcid_icon_fetcher(
  repo,
  filename = "orcid.svg",
  url = "https://ndownloader.figshare.com/files/8439047",
  method = "auto",
  overwrite = FALSE,
  ...
)

Arguments

repo

The repository root directory to save the file.

filename

Target filename.

url

The URL to fetch the SVG file from.

method

The download method to use, see download.file.

overwrite

If FALSE (default) and the target file already exists, it will not be replaced with a newly downloaded one.

...

Further arguments to pass to download.file, exept for mode (see Note).

Note

The mode argument is fixed to "wb" (binary) to ensure successful downloads also on Windows systems.

Examples

## Not run: 
orcid_icon_fetcher("/tmp")

## End(Not run)

unDocUMeantIt/roxyPackage documentation built on March 9, 2023, 6:31 p.m.