Rtools.pacman.package: List of pacman packages in Rtools

Rtools.pacman.package.listR Documentation

List of pacman packages in Rtools

Description

These are functions to search for packages that can be installed by Rtools' pacman. In short, it is a wrapper for some of the functions of pacman in Rtools.

Rtools.pacman.package.list() is a function that outputs a list of packages that can be installed by Rtools pacman from repository. By specifying arguments, you can extract only those packages that are already installed, or only those that are yet uninstalled.

Rtools.pacman.package.find() is a function that displays a list of packages that can be installed by pacman in Rtools from repository with the specified arguments in the string. If no matching package is found, return NA.

Usage

Rtools.pacman.package.list(package.list = c("all", "installed", "uninstalled"))

Rtools.pacman.package.find(
  x,
  package.list = c("all", "installed", "uninstalled")
)

Arguments

package.list

Select whether to show all packages, only installed packages, or only packages that have not yet been uninstalled.

x

A String. Specify the string contained in the package to be searched.

Details

Cannot be used except in a Windows environment where Rtools40 or later is installed.

Rtools.pacman.package.list() will pass pacman -Sl to shell to receive and output the result.

Rtools.pacman.package.find() binds pacman -Ss and the input value with paste, and passes it to shell to receive the result and output it.

Value

a Vector of package names.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.