[Feature request] Add metadata from Bioconductor packages

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Start at pkgcache::meta_cache_list() and review how Bioconductor metadata is obtained, then compare it with the Bioconductor VIEWS Date/Publication field and the available pkgcache::bioc_version(). Resolve which Bioconductor version should supply the date, and consider whether it is fixed or configurable. Done means Bioconductor packages return a publication date instead of NULL.

Written by the indexing model from the issue text.

Description

feature

The pkgcache::meta_cache_list("SummarizedExperiment")$published currently returns a NULL date for Bioc packages

The date information is available under https://bioconductor.org/packages/3.17/bioc/VIEWS and can be parsed on the Date/Publication field. bioc::BiocPkgTools package may also be able to access the information

Considerations:

There could be an issue about which version from Bioconductor to use for the date. Possible workarounds can be implemented by defaulting to pkgcache::bioc_version() or as a parameter for meta_cache_list function

Simple sample code that retrieves publication date (without any caching)

sample_bioc_date <- \(package) {
  uri <- url(glue::glue("https://bioconductor.org/packages/{pkgcache::bioc_version()}/bioc/VIEWS"))
  data_raw <- data.frame(read.dcf(uri))
  data_raw[data_raw$Package == package, "Date.Publication"]
}

sample_bioc_date("SummarizedExperiment")
Dominant language
R
Stars
30
Forks
19
Avg merge
4d 19h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/pkgcache

All issues in r-lib/pkgcache

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.