Learn R Programming

ggimage (version 0.3.6)

download_phylopic: download_phylopic

Description

download phylopic images

Usage

download_phylopic(
  id,
  destdir = ".",
  ...,
  reuse = TRUE,
  lock_timeout = getOption("ggimage.phylopic_lock_timeout", 30),
  lock_poll = getOption("ggimage.phylopic_lock_poll", 0.05)
)

Value

a character string (or vector) with downloaded file path

Arguments

id

phylopic id

destdir

directory where the downloaded images are to be saved.

...

additional parameters passed to download.file

reuse

whether to reuse existing non-empty regular files

lock_timeout

maximum seconds to wait for a concurrent download lock

lock_poll

seconds between lock acquisition attempts

Author

Guangchuang Yu

Details

This function allows users to download phylopic images using phylopic id