Skip to content

Commit

Permalink
Use new endpoint for package list
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 3, 2024
1 parent 805cf4d commit efaeba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ create_universe_repo <- function(owner){
#' @rdname setup_universes
#' @param only_if_empty only delete the universe if there are no deployed packages
delete_universe_repo <- function(owner, only_if_empty = FALSE){
url <- sprintf('https://%s.r-universe.dev/packages', owner)
url <- sprintf('https://%s.r-universe.dev/api/ls', owner)
pkgs <- jsonlite::fromJSON(url)
if(length(pkgs)){
if(only_if_empty){
Expand Down

0 comments on commit efaeba4

Please sign in to comment.