create_empty_PACKAGES: Create an empty package database

View source: R/cranlike.R

create_empty_PACKAGESR Documentation

Create an empty package database

Description

Create an empty package database if it does not exist. It also updates the PACKAGES* files from the new (empty) database.

Usage

create_empty_PACKAGES(dir = ".", fields = NULL, xcolumns = NULL)

Arguments

dir

Character vector describing the location of the repository (directory including source or binary packages) to generate the ‘PACKAGES’, ‘PACKAGES.gz’ and ‘PACKAGES.rds’ files from and write them to.

fields

a character vector giving the fields to be used in the ‘PACKAGES’, ‘PACKAGES.gz’ and ‘PACKAGES.rds’ files in addition to the default ones, or NULL (default).

The default corresponds to the fields needed by available.packages: "Package", "Version", "Priority", "Depends", "Imports", "LinkingTo", "Suggests", "Enhances", "OS_type", "License" and "Archs", and those fields will always be included, plus the file name in field "File" if addFile = TRUE and the path to the subdirectory in field "Path" if subdirectories are used.

xcolumns

Extra scalar columns to add to the database. Should be a named list of character scalars or NULL for no extra columns.


r-hub/cranlike documentation built on April 25, 2024, 9:22 a.m.