rdeps

:package: Identify packages used in a project

https://github.com/frbcesab/rdeps

Science Score: 44.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.8%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

:package: Identify packages used in a project

Basic Info
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • Open Issues: 2
  • Releases: 2
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Codemeta

README.Rmd

---
output: github_document
---




```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/",
  out.width = "100%"
)
```



rdeps 
=========================================================


[![CRAN status](https://www.r-pkg.org/badges/version/rdeps)](https://CRAN.R-project.org/package=rdeps)
[![R CMD Check](https://github.com/frbcesab/rdeps/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/frbcesab/rdeps/actions/workflows/R-CMD-check.yaml)
[![Website](https://github.com/frbcesab/rdeps/actions/workflows/pkgdown.yaml/badge.svg)](https://github.com/frbcesab/rdeps/actions/workflows/pkgdown.yaml)
[![License: GPL (>= 2)](https://img.shields.io/badge/License-GPL%20%28%3E%3D%202%29-blue.svg)](https://choosealicense.com/licenses/gpl-2.0/)




Overview
Features
Installation
Get started
Citation
Contributing

## Overview The goal of the R package `rdeps` is to provide a tool to identify all external packages used in a project (package, compendium, website, etc.) and to list them in the [`DESCRIPTION`](https://r-pkgs.org/description.html) file. ## Features `rdeps` screens all `.R`, `.Rmd`, and `.qmd` files to extract the name of packages used in a project. This package detects packages called with `library(foo)`, `require(foo)`, and `foo::bar()` and adds these dependencies to the `DESCRIPTION` file in the sections _Depends_, _Imports_, and _Suggests_. Different types of dependencies are handled: - if the package is called with `library(foo)` or `require(foo)`, it will be added to the section **Depends** of the `DESCRIPTION` file (except for vignettes and tests); - if the package is called with `foo::bar()` or `use("foo", "bar")`, it will be added to the section **Imports** of the `DESCRIPTION` file (except for vignettes and tests); - if the package is only used in vignettes or tests, it will be added to the section **Suggests** of the `DESCRIPTION` file. ## Installation You can install the stable version from [CRAN](https://cran.r-project.org/) with: ```{r eval=FALSE} ## Install stable version of < rdeps > from CRAN ---- install.packages("rdeps") ``` Or you can install the development version from [GitHub](https://github.com/) with: ```{r eval=FALSE} ## Install < remotes > package (if not already installed) ---- if (!requireNamespace("remotes", quietly = TRUE)) { install.packages("remotes") } ## Install < rdeps > from GitHub ---- remotes::install_github("frbcesab/rdeps") ``` Then you can attach the package `rdeps`: ```{r eval=FALSE} library("rdeps") ``` ## Get started `rdeps` contains one main function: [`add_deps()`](https://frbcesab.github.io/rdeps/reference/add_deps.html). **Note:** the project must contain a [`DESCRIPTION`](https://r-pkgs.org/description.html) file. A `DESCRIPTION` file can be created and added to an existing project with the function [`usethis::use_description()`](https://usethis.r-lib.org/reference/use_description.html). ## Citation Please cite `rdeps` as: > Casajus Nicolas (`r format(Sys.Date(), "%Y")`) rdeps: An R package to identify external packages used in a project. R package version 0.3, . ## Contributing All types of contributions are encouraged and valued. For more information, check out our [Contributor Guidelines](https://github.com/frbcesab/rdeps/blob/main/CONTRIBUTING.md). Please note that the `rdeps` project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

Owner

  • Name: FRB CESAB
  • Login: FRBCesab
  • Kind: organization
  • Location: Montpellier, FRANCE

Citation (CITATION.cff)

# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "rdeps" in publications use:'
type: software
license: GPL-2.0-or-later
title: 'rdeps: Identify External Packages Used in a Project'
version: '0.3'
identifiers:
- type: doi
  value: 10.32614/CRAN.package.rdeps
abstract: Screens all '.R', '.Rmd', and '.qmd' files to extract the name of packages
  used in a project. This package detects packages called with 'library(foo)', 'require(foo)',
  'foo::bar()' and 'use("foo", "bar")' and adds these dependencies in the DESCRIPTION
  file in the sections Depends, Imports, and Suggests.
authors:
- family-names: Casajus
  given-names: Nicolas
  email: nicolas.casajus@fondationbiodiversite.fr
  orcid: https://orcid.org/0000-0002-5537-5294
preferred-citation:
  type: manual
  title: 'rdeps: An R package to identify external packages used in a project'
  authors:
  - name: Casajus Nicolas
  year: '2025'
  notes: R package version 0.3
  url: https://github.com/frbcesab/rdeps
repository: https://CRAN.R-project.org/package=rdeps
repository-code: https://github.com/frbcesab/rdeps
url: https://github.com/frbcesab/rdeps
contact:
- family-names: Casajus
  given-names: Nicolas
  email: nicolas.casajus@fondationbiodiversite.fr
  orcid: https://orcid.org/0000-0002-5537-5294
references:
- type: software
  title: cli
  abstract: 'cli: Helpers for Developing Command Line Interfaces'
  notes: Imports
  url: https://cli.r-lib.org
  repository: https://CRAN.R-project.org/package=cli
  authors:
  - family-names: Csárdi
    given-names: Gábor
    email: gabor@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.cli
- type: software
  title: utils
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  institution:
    name: R Foundation for Statistical Computing
    address: Vienna, Austria
  year: '2025'

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "rdeps",
  "description": "Screens all '.R', '.Rmd', and '.qmd' files to extract the name of packages used in a project. This package detects packages called with 'library(foo)', 'require(foo)', 'foo::bar()' and 'use(\"foo\", \"bar\")' and adds these dependencies in the DESCRIPTION file in the sections Depends, Imports, and Suggests.",
  "name": "rdeps: Identify External Packages Used in a Project",
  "codeRepository": "https://github.com/frbcesab/rdeps",
  "issueTracker": "https://github.com/frbcesab/rdeps/issues",
  "license": "https://spdx.org/licenses/GPL-2.0",
  "version": "0.4",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.5.1 (2025-06-13)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Nicolas",
      "familyName": "Casajus",
      "email": "nicolas.casajus@fondationbiodiversite.fr",
      "@id": "https://orcid.org/0000-0002-5537-5294"
    }
  ],
  "copyrightHolder": [
    {
      "@type": "Person",
      "givenName": "Nicolas",
      "familyName": "Casajus",
      "email": "nicolas.casajus@fondationbiodiversite.fr",
      "@id": "https://orcid.org/0000-0002-5537-5294"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Nicolas",
      "familyName": "Casajus",
      "email": "nicolas.casajus@fondationbiodiversite.fr",
      "@id": "https://orcid.org/0000-0002-5537-5294"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "cli",
      "name": "cli",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=cli"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "utils",
      "name": "utils"
    },
    "SystemRequirements": null
  },
  "fileSize": "217.67KB",
  "citation": [
    {
      "@type": "SoftwareSourceCode",
      "datePublished": "2025",
      "author": [
        {
          "@type": "Organization",
          "name": "Casajus Nicolas"
        }
      ],
      "name": "rdeps: {An} {R} package to identify external packages used in a project",
      "url": "https://github.com/frbcesab/rdeps",
      "description": "R package version 0.4"
    }
  ],
  "releaseNotes": "https://github.com/frbcesab/rdeps/blob/main/NEWS.md",
  "readme": "https://github.com/FRBCesab/rdeps/blob/main/README.md",
  "contIntegration": [
    "https://github.com/frbcesab/rdeps/actions/workflows/R-CMD-check.yaml",
    "https://github.com/frbcesab/rdeps/actions/workflows/pkgdown.yaml"
  ],
  "relatedLink": "https://CRAN.R-project.org/package=rdeps"
}

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 2
  • Push event: 15
  • Pull request event: 1
  • Fork event: 1
  • Create event: 1
Last Year
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 2
  • Push event: 15
  • Pull request event: 1
  • Fork event: 1
  • Create event: 1

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: 4 days
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 4 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • fkohrt (1)
  • ahasverus (1)
Pull Request Authors
  • ahasverus (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 196 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: rdeps

Identify External Packages Used in a Project

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 196 Last month
Rankings
Dependent packages count: 28.2%
Dependent repos count: 36.1%
Average: 49.6%
Downloads: 84.4%
Last synced: 10 months ago