Learn R Programming

pacs

For more information please visit the pacs website.

Functions Reference

A set of tools that make life easier for developers and maintainers of R packages.

  • Validating the library, packages and renv lock files.
  • Exploring complexity of a certain package like evaluating its size in bytes with dependencies.
  • The shiny app complexity could be explored too.
  • Assessing the life duration of a specific package version.
  • Checking a CRAN package check page status for any errors and warnings.
  • Retrieving a DESCRIPTION or NAMESPACE file for any package version.
  • Comparing DESCRIPTION or NAMESPACE files between different package versions.
  • Getting a list of all releases for a specific package.
  • The Bioconductor is partly supported.

An Internet connection is required to take full advantage of most of the features.

Almost all calls which requiring an Internet connection are cached (for 30 minutes) by the memoise package, so the second invocation of the same command (and arguments) is immediate. Restart the R session if you want to clear cached data.

Installation

Development version:

# install.packages("remotes")
remotes::install_github("polkas/pacs")

CRAN:

install.packages("pacs")

Examples

For more examples with descriptions please visit the walk-through vignette.

Validate the library:

pacs::lib_validate(
  checkred = list(
    scope = c("ERROR", "FAIL"),
    # by default all flavors
    flavors = NULL
  )
)

All package check statuses for all CRAN servers:

pacs::checked_packages()

All CRAN releases of a package:

pacs::pac_timemachine("dplyr")

Compare package DESCRIPTION file dependencies between versions:

pacs::pac_compare_versions("shiny", "1.0.0", "1.5.0")

Looking for heavy dependencies:

pacs::pac_deps_heavy("caret")

Copy Link

Version

Install

install.packages('pacs')

Monthly Downloads

238

Version

0.6.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Maciej Nasinski

Last Published

September 27th, 2024

Functions in pacs (0.6.0)

pac_lifeduration

Package version life duration at specific Date or for a specific version
lock_validate

Validate a specific renv lock file
pac_namespace

package NAMESPACE file
pac_size

Size of the package
pac_news

Get NEWS for a package
pac_last

Getting the most recent package version
pac_islast

Checking if a package version is the most recent one
validate_pac_input

validate pac input
read_github_file

Read a file from a GitHub CRAN repository
standard_args

Standard Template Arguments
pacs_base

Get base R packages
pac_health

CRAN package health state at a specific Date or for a specific version
pac_isin

Checking if a package is in repositories
pac_validate

Validate a specific local package
validate_online

Append a data.frame with online attributes
validate_compare_input

validate compare input
pacs_lifeduration

Packages life duration for a specific version
pac_description

package DESCRIPTION file
pac_deps_user

Package dependencies - user perspective
read_cran_file

Read a file from CRAN
pac_deps_heavy

Package direct dependencies and number of dependencies for each of them
pac_deps_timemachine

R CRAN package dependencies for a certain version or time point
pac_true_size

True size of the package
pac_timemachine

Package metadata for all releases
app_size

Size of the shiny app
cran_flavors

Retrieving all R CRAN servers flavors
compareVersionsMin

Minimum version across the vector
compareVersionsMax

Maximum version across the vector
dir_size

Size of the package
app_deps

The shiny app dependencies
bio_releases

Retrieving all Bioconductor releases
available_packages

List Available Packages at CRAN-like Repositories
biocran_repos

CRAN and Bioconductor repositories
pac_deps

Package dependencies
checked_packages

Retrieving all R CRAN packages check pages statuses.
pac_deps_dev

Package dependencies - developer perspective
pac_checkred

Checking the R CRAN package check page status
lib_validate

Validate the local library
pac_compare_versions

Compare DESCRIPTION files dependencies between specific CRAN packages versions
pac_compare_news

Compare NEWS files between specific CRAN packages versions
pac_compare_namespace

Compare NAMESPACE exports between specific CRAN packages versions
match_flavors

Get all matched CRAN servers to the local OS
pac_checkpage

Retrieving the R CRAN package check page