bioconductor repos are not automatically included
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
rsconnect uses packrat::.snapshotImpl to record dependencies for a project without having packages installed into packrat/lib. If BiocInstaller is available, it is first loaded via requireNamespace.
Start with the default repository configuration in the RStudio IDE.
getOption("repos")
CRAN
# => "https://cran.rstudio.com/"
# => attr(,"RStudio")
# => [1] TRUE
Given a Shiny application in a pristine directory (no packrat directory):
library(shiny)
# Biobase depends upon BioGenerics, so we have a top-level and dependent
# package coming from Bioconductor.
library(Biobase)
server <- function(input, output, session) {}
ui <- fluidPage("bio shiny")
shiny::shinyApp(ui = ui, server = server)
Running a snapshot in the containing directory:
packrat::.snapshotImpl(project = ".", snapshot.sources = FALSE, fallback.ok = TRUE, verbose = FALSE)
The packrat.lock file produced has the preamble:
PackratFormat: 1.4
PackratVersion: 0.4.9.13
RVersion: 3.5.1
Repos: CRAN=https://cran.rstudio.com/
This is because the activeRepos function looks in the project library for BiocInstaller and does not allow for projects that have not installed their dependencies (as is the case when used for rsconnect dependency analysis).
Workaround is to explicitly configure the repos option to the bioc repos:
options(repos = BiocInstaller::biocinstallRepos())
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the activeRepos implementation in R/snapshot.R and the dependency snapshot path referenced in R/bundle.R. Reproduce the provided pristine Shiny application case with Biobase, then inspect the generated packrat.lock repository preamble. Done means Bioconductor repositories are detected and recorded without requiring dependencies to be installed in the project library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100