Skip to contents

Downloads the assets and extracts the executable program binaries for Linux, macOS and Windows of the specified Pandoc release.

Usage

download_pandoc_binaries(
  release_id = yay::gh_release_latest(owner = "jgm", name = "pandoc")$id,
  os = c("linux", "macos", "windows"),
  path = "bin/",
  overwrite = TRUE
)

Arguments

release_id

The GitHub release identifier of the desired Pandoc release. Use yay::gh_releases(owner = "jgm", name = "pandoc") to determine the release identifier of a specific Pandoc version number. An integer scalar.

os

The operating system(s) for which Pandoc binaries should be downloaded. Any combination of "linux", "macos" and "windows".

path

The filesystem path to which the binaries are saved to. A path or something coercible to.

overwrite

Whether to overwrite existing binaries under path.

Value

path invisibly.

See also

GitHub release functions: yay::gh_releases(), yay::gh_release_latest()

Other Pandoc functions: pandoc_release_assets(), pandoc_tpl()