MyNixOS website logo
Description

Tools for 'CRAN'-Like Repositories.

A set of functions to manage 'CRAN'-like repositories efficiently.

cranlike

Tools for CRAN-like Repositories

Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN RStudio mirror downloads R-CMD-check Codecov test coverage

A set of functions to manage CRAN-like repositories efficiently. This package is an alternative to tools::write_PACKAGES. The goal is to make updates to the repository easier and faster, without the need of scanning all the package files.

cranlike keeps the package data in a SQLite database, in addition to the PACKAGES* files. This database is the canonical source of the package data. It can be updated quickly, to add and remove packages. The PACKAGES* files are generated from the database.

Installation

install.packages("cranlike")

Usage

library(cranlike)

Setting up a repository

create_empty_PACKAGES creates an empty CRAN-like repository in the specified directory. It creates the SQLite database (if it does not exist), and also the PACKAGES* files.

update_PACKAGES is similar, but it also scans the directory for package files, and adds them to the database. Use this function on an existing CRAN-like repository. It creates and updates the database, and then the PACKAGES* files.

Adding and removing packages

add_PACKAGES adds one or more package files to the repository. The files must already exist in the directory. The database is created if needed, and then updated with the new packages. Then the PACKAGES* files will be re-generated.

remove_PACKAGES removes one or more package files from the repository. It first removes them from the database, and then removes the files from the directory. Finally, it re-generates the PACKAGES* files.

Listing packages

package_versions lists all packages in the repository. It uses the SQLite database instead of parsing the PACKAGES* files, so it is much faster.

License

GPL Version 2 or higher © R Consortium.

Metadata

Version

1.0.3

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows