Skip to content

Commit

Permalink
Handle NULL repository when building pkg metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed May 9, 2024
1 parent 5fc04c8 commit 097a7b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ prepare_wasm_metadata <- function(pkg, metadata, verbose) {
repo <- desc$RemoteRepo
sha <- desc$RemoteSha
metadata$ref <- glue::glue("github::{user}/{repo}@{sha}")
} else if (repo == "CRAN") {
} else if (is.null(repo) || repo == "CRAN") {
repo <- "CRAN"
metadata$ref <- glue::glue("{metadata$name}@{metadata$version}")
} else if (grepl("Bioconductor", repo)) {
metadata$ref <- glue::glue("bioc::{metadata$name}@{metadata$version}")
Expand Down

0 comments on commit 097a7b8

Please sign in to comment.