cranlike

Manage files in a CRAN-like repository

https://github.com/r-hub/cranlike

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary

Keywords

cran package-management repository

Keywords from Contributors

odbc tidy-data
Last synced: 10 months ago · JSON representation

Repository

Manage files in a CRAN-like repository

Basic Info
  • Host: GitHub
  • Owner: r-hub
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 129 KB
Statistics
  • Stars: 25
  • Watchers: 3
  • Forks: 5
  • Open Issues: 3
  • Releases: 2
Topics
cran package-management repository
Created over 9 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog

README.md

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 <!-- badges: end -->

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

r install.packages("cranlike")

Usage

r 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

Owner

  • Name: The R-hub project of the R Consortium
  • Login: r-hub
  • Kind: organization
  • Email: admin@r-hub.io
  • Location: United States of America

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 3
Last Year
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 3

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 72
  • Total Committers: 3
  • Avg Commits per committer: 24.0
  • Development Distribution Score (DDS): 0.056
Top Committers
Name Email Commits
Gábor Csárdi c****r@g****m 68
Kirill Müller k****r@m****g 3
Jon Calder j****r@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 12
  • Total pull requests: 4
  • Average time to close issues: 8 months
  • Average time to close pull requests: about 3 hours
  • Total issue authors: 5
  • Total pull request authors: 3
  • Average comments per issue: 1.17
  • Average comments per pull request: 1.25
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 2.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • gaborcsardi (8)
  • maelle (1)
  • mikkmart (1)
  • hadley (1)
  • JosiahParry (1)
Pull Request Authors
  • mikkmart (2)
  • krlmlr (2)
  • jonmcalder (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 582 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: cranlike

Tools for 'CRAN'-Like Repositories

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 582 Last month
Rankings
Stargazers count: 10.6%
Forks count: 14.2%
Average: 21.3%
Dependent repos count: 24.0%
Dependent packages count: 28.8%
Downloads: 29.2%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • DBI * imports
  • RSQLite * imports
  • debugme * imports
  • desc >= 1.1.0 imports
  • tools * imports
  • utils * imports
  • covr * suggests
  • mockery * suggests
  • testthat * suggests
  • withr * suggests
  • zip * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/pr-fetch v2 composite
  • r-lib/actions/pr-push v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite