Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cataloging R packages #730

Closed
westonsteimel opened this issue Jan 2, 2022 · 2 comments · Fixed by #1790
Closed

Support cataloging R packages #730

westonsteimel opened this issue Jan 2, 2022 · 2 comments · Fixed by #1790
Assignees
Labels
enhancement New feature or request new-cataloger

Comments

@westonsteimel
Copy link
Contributor

What would you like to be added:

Support for cataloging R packages. The package metadata spec is at https://r-pkgs.org/description.html#description and the package url spec is at https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#cran

Why is this needed:

Extends support for SBOM generation to the R ecosystem

@westonsteimel westonsteimel added the enhancement New feature or request label Jan 2, 2022
@westonsteimel
Copy link
Contributor Author

westonsteimel commented Jan 2, 2022

As an example, this is what the DESCRIPTION file looks like for the odbc package

Package: odbc
Title: Connect to ODBC Compatible Databases (using the DBI Interface)
Version: 1.3.3
Authors@R:
    c(person(given = "Jim",
             family = "Hester",
             role = "aut"),
      person(given = "Hadley",
             family = "Wickham",
             role = c("aut", "cre"),
             email = "hadley@rstudio.com"),
      person(given = "Oliver", "Gjoneski", role = "ctb", comment = "detule"),
      person(given = "lexicalunit",
             role = "cph",
             comment = "nanodbc library"),
      person(given = "Google Inc.",
             role = "cph",
             comment = "cctz library"),
      person(given = "RStudio",
             role = c("cph", "fnd")))
Description: A DBI-compatible interface to ODBC databases.
License: MIT + file LICENSE
URL: https://github.com/r-dbi/odbc, https://db.rstudio.com
BugReports: https://github.com/r-dbi/odbc/issues
Depends: R (>= 3.2.0)
Imports: bit64, blob (>= 1.2.0), DBI (>= 1.0.0), hms, methods, rlang,
        Rcpp (>= 0.12.11)
Suggests: covr, DBItest, magrittr, RSQLite, testthat, tibble
LinkingTo: Rcpp
ByteCompile: true
Encoding: UTF-8
RoxygenNote: 7.1.2
SystemRequirements: C++11, GNU make, An ODBC3 driver manager and
        drivers.
Collate: 'odbc.R' 'Driver.R' 'Connection.R' 'DataTypes.R'
        'RcppExports.R' 'Result.R' 'Table.R' 'Viewer.R' 'db.R'
        'hidden.R' 'utils.R' 'zzz.R'
NeedsCompilation: yes
Packaged: 2021-11-29 20:57:53 UTC; jhester
Author: Jim Hester [aut],
  Hadley Wickham [aut, cre],
  Oliver Gjoneski [ctb] (detule),
  lexicalunit [cph] (nanodbc library),
  Google Inc. [cph] (cctz library),
  RStudio [cph, fnd]
Maintainer: Hadley Wickham <hadley@rstudio.com>
Repository: RSPM
Date/Publication: 2021-11-30 09:10:02 UTC
Built: R 4.1.0; x86_64-pc-linux-gnu; 2021-12-01 11:02:45 UTC; unix

I used the following docker command to get a container with a cli R environment setup:

docker run --rm -it rocker/r-ver bash

Then within the container

# install odbc package to the default r library location at /usr/local/lib/R/site-library/
install2.r odbc

@actualben
Copy link

It may be useful to be able to locate and parse up on renv.lock files

@spiffcs spiffcs added this to OSS May 31, 2022
@spiffcs spiffcs moved this to Backlog (Pulled Forward for Priority) in OSS Aug 18, 2022
@kzantow kzantow assigned kzantow and unassigned kzantow Sep 6, 2022
@willmurphyscode willmurphyscode self-assigned this May 2, 2023
@github-project-automation github-project-automation bot moved this from Backlog to Done in OSS May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new-cataloger
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants