current_r_platform {pkgcache}R Documentation

R platforms

Description

R platforms

Usage

current_r_platform()

current_r_platform_data()

default_platforms()

Details

current_r_platform() detects the platform of the current R version. current_r_platform_data() is similar, but returns the raw data instead of a character scalar.

By default pkgcache works with source packages and binary packages for the current platform. You can change this, by providing different platform names as arguments to cranlike_metadata_cache$new(), repo_status(), etc.

These functions accept the following platform names:

default_platfoms() returns the default platforms for the current R session. These typically consist of the detected platform of the current R session, and "source", for source packages.

Value

current_r_platform() returns a character scalar.

current_r_platform_data() returns a data frame with character scalar columns:

default_platforms() returns a character vector of the default platforms.

Examples

current_r_platform()
default_platforms()

[Package pkgcache version 2.2.2 Index]