Skip to content

Commit

Permalink
Fix sysreqs query
Browse files Browse the repository at this point in the history
Need to update the URL.

Closes #757.
  • Loading branch information
gaborcsardi committed May 23, 2023
1 parent 1e12140 commit e199c1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/system_requirements.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DEFAULT_RSPM_REPO_ID <- "1" # cran
DEFAULT_RSPM <- "https://packagemanager.rstudio.com"
DEFAULT_RSPM <- "https://packagemanager.posit.co"

#' Query the system requirements for a package (and its dependencies)
#'
Expand Down Expand Up @@ -48,6 +48,7 @@ system_requirements <- function(os, os_release = NULL, path = ".", package = NUL
curl,
args = c(
"--silent",
"-L",
shQuote(sprintf("%s/sysreqs?all=false&pkgname=%s&distribution=%s&release=%s",
rspm_repo_url,
paste(package, collapse = "&pkgname="),
Expand All @@ -72,6 +73,7 @@ system_requirements <- function(os, os_release = NULL, path = ".", package = NUL
curl,
args = c(
"--silent",
"-L",
"--data-binary",
shQuote(paste0("@", desc_file)),
shQuote(sprintf("%s/sysreqs?distribution=%s&release=%s&suggests=true",
Expand Down

0 comments on commit e199c1b

Please sign in to comment.