Package 'rspmapi'

Title: R Wrapper Around The RStudio Package Manager API
Description: Provides functions for querying the RStudio Package Manager API. If your oraganisation uses RStudio Packaeg Manager, this package will allow you to interact with it's API directly from R without having to construct the queries manually.
Authors: Mark Sellors [aut, cre]
Maintainer: Mark Sellors <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-01 04:23:48 UTC
Source: https://github.com/sellorm/rspmapi

Help Index


Fetches a list of alerts

Description

Fetches a list of alerts for events such as excessive file usage

Usage

alerts(instance)

Arguments

instance

An rspm_instance object created with instance().


Connect to an RStudio Package Manager instance

Description

Connect to an RStudio Package Manager instance

Usage

instance(url, silent = FALSE)

Arguments

url

string The URL of the Package Manager instance

silent

boolean Silences the connection status message


Fetches usage data from the metrics API

Description

This API takes two possible parameters resulting in a URL of the form: ⁠/__api__/metrics/packages?_sourceType=r&_days=7⁠

Usage

metrics_packages(instance, params = list())

Arguments

instance

An rspm_instance object created with instance().

params

A list of optional query parametes


Fetches lists of repositories

Description

Fetches lists of repositories

Usage

repos(instance, params = list())

Arguments

instance

An rspm_instance object created with instance()

params

A list of optional parameters applied to the API query


Fetches the date of the earliest calendar transaction for a repo

Description

Fetches the date of the earliest calendar transaction for a repo. Considers only transactions that are viable for calendar-based snapshots.

Usage

repos_first_transaction(instance, id)

Arguments

instance

An rspm_instance object created with instance().

id

An RSPM repository ID


Fetches lists of packages for a specific repository with optional filters

Description

Fetches a single package for a specific repository with optional parameters

Usage

repos_packages(instance, id, name = NULL, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM repository ID

name

A package name

params

A list of optional parameters applied to the API query


Fetches lists of system requirements for a specific repository and package

Description

Fetches lists of system requirements for a specific repository and package

Usage

repos_packages_sysreqs(instance, id, name, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM repository ID

name

A package name

params

A list of optional parameters applied to the API query


Fetches lists of source records for a specific repository

Description

Fetches lists of source records for a specific repository

Usage

repos_sources(instance, id, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM repository ID

params

A list of optional parameters applied to the API query


Fetches list of system requirements for a specific repository

Description

Fetches list of system requirements for a specific repository

Usage

repos_sysreqs(instance, id, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM repository ID

params

A list of optional parameters applied to the API query


The generic endpoint access function

Description

builds appropriate query strings and performs requests against the supplied RSPM instance

Usage

return_endpoint(instance, endpoint, params = list())

Arguments

instance

An RSPM instance object created with instance()

endpoint

The API endpoint to query

params

Optional list of query parameters


Fetches lists of sources available in RSPM

Description

Fetches lists of sources available in RSPM

Usage

sources(instance)

Arguments

instance

An rspm_instance object created with instance()


Fetches lists of packages for a specific source with optional filters

Description

Fetches lists of packages for a specific source with optional filters

Usage

sources_packages(instance, id, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM source ID

params

A list of optional parameters applied to the API query


Fetches lists of PyPI package releases for a specific package name and source with optional filters

Description

Fetches lists of PyPI package releases for a specific package name and source with optional filters

Usage

sources_packages_releases(instance, id, name, params = list())

Arguments

instance

An rspm_instance object created with instance()

id

An RSPM source ID

name

A package name

params

A list of optional parameters applied to the API query


Fetches lists of transactions for a given source

Description

Fetches lists of transactions for a given source

Usage

sources_transactions(instance, id, params = list())

Arguments

instance

An rspm_instance object created with instance().

id

An RSPM source ID

params

A list of optional parameters applied to the API query


Fetches the status of the RStudio Package Manager server

Description

Fetches the status of the RStudio Package Manager server

Usage

status(instance)

Arguments

instance

An rspm_instance object created with instance().