upload_package: Upload package archive to JFrog

View source: R/upload_package.R

upload_packageR Documentation

Upload package archive to JFrog

Description

JFrog allows different ways of authentication as noted in JFrog's documentation. Here we rely on an API Key for a dedicated header or an access token in an authorization header.

Usage

upload_package(
  package_archive,
  jfrog_url,
  api_key = jfrog_api_key(),
  access_token = jfrog_access_token()
)

Arguments

package_archive

Path to tar.gz, zip or tgz archive.

jfrog_url

Base URL of the JFrog CRAN API. Note that if the URL of the CRAN is https://HOSTNAME.jfrog.io/artifactory/cran-local the URL of the API is https://HOSTNAME.jfrog.io/artifactory/api/cran/cran-local.

api_key

JFrog API Key.

access_token

JFrog access token.

Details

If both api_key and access_token are supplied then access_token is used. The rationale is that this is the desired behavior in CI pipelines.

Value

Response from httr::POST().


robertdj/jfrog documentation built on Sept. 24, 2022, 6:16 p.m.