-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6931513
commit ff7510e
Showing
8 changed files
with
21 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,9 @@ Config/testthat/edition: 3 | |
Encoding: UTF-8 | ||
Language: en-US | ||
Roxygen: list(markdown = TRUE, r6 = FALSE) | ||
RoxygenNote: 7.3.1.9000 | ||
RoxygenNote: 7.3.2 | ||
NeedsCompilation: yes | ||
Packaged: 2024-06-25 08:37:02 UTC; gaborcsardi | ||
Packaged: 2024-08-08 09:38:56 UTC; gaborcsardi | ||
Author: Gábor Csárdi [aut, cre], | ||
Posit Software, PBC [cph, fnd] | ||
Maintainer: Gábor Csárdi <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ repo_get <- function(r_version = getRversion(), bioc = TRUE, | |
#' | ||
#' @export | ||
#' @examplesIf pkgcache:::run_examples() | ||
#' repo_resolve("PPM@2020-01-21") | ||
#' repo_resolve("PPM@2021-01-21") | ||
#' #' repo_resolve("[email protected]") | ||
#' #' repo_resolve("[email protected]") | ||
|
||
|
@@ -211,7 +211,7 @@ repo_sugar_ppm <- function(x, nm) { | |
|
||
# if we may have binaries, then get the distro data as well | ||
synchronise(when_all( | ||
async_get_ppm_versions(date = if (as.character(date) == "latest") NULL else date), | ||
ppm_snapshots(), | ||
if (binaries) { | ||
async_get_ppm_status( | ||
distribution = current$distribution, | ||
|
@@ -239,16 +239,10 @@ repo_sugar_ppm <- function(x, nm) { | |
if (as.character(date) == "latest") { | ||
ver <- "latest" | ||
} else { | ||
vers <- pkgenv$ppm_versions | ||
ppm_dates <- names(vers) | ||
if (date < ppm_dates[1]) { | ||
stop("PPM snapshots go back to ", as.Date(ppm_dates[1]), " only") | ||
if (date < "2017-10-10") { | ||
stop("PPM snapshots go back to 2017-10-10 only") | ||
} | ||
sel <- which(date <= ppm_dates)[1] | ||
if (is.na(sel)) { | ||
stop("Cannot find matching PPM snapshot for ", date) | ||
} | ||
ver <- vers[[sel]] | ||
ver <- as.character(date) | ||
} | ||
|
||
# create repo URL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters