Download the photon executable from GitHub.
Usage
download_photon(
path = ".",
version = NULL,
opensearch = FALSE,
only_url = FALSE,
quiet = FALSE
)
Arguments
- path
Path to a directory to store the executable.
- version
Version tag of the photon release. If
NULL
, downloads the latest known version.- opensearch
If
TRUE
, downloads the OpenSearch version of photon if available. OpenSearch versions are available for photon >= 0.6.0.- only_url
If
TRUE
, performs a download. Otherwise, only returns a link to the file.- quiet
If
TRUE
, suppresses all informative messages.
Value
If only_url = FALSE
, returns a character string giving the
path to the downloaded file. Otherwise, returns the URL to be downloaded.
Examples
download_photon(tempdir(), version = "0.4.1")
#> ℹ Fetching photon 0.4.1.
#> ✔ Successfully downloaded photon 0.4.1. [760ms]
#>
#> [1] "/tmp/RtmpFN470Q/photon-0.4.1.jar"