-
Notifications
You must be signed in to change notification settings - Fork 6
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
richelbilderbeek
committed
Oct 27, 2023
1 parent
9d59e43
commit 694320f
Showing
3 changed files
with
31 additions
and
21 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
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 |
---|---|---|
@@ -1,25 +1,19 @@ | ||
#' Deprecated function. | ||
#' | ||
#' Update all babette dependencies, by installing their | ||
#' latest versions | ||
#' latest versions. | ||
#' | ||
#' See \url{https://github.com/richelbilderbeek/babetteinstall} | ||
#' how to do this. | ||
#' @inheritParams remotes::install_github | ||
#' @author Giovanni Laudanno, Richèl J.C. Bilderbeek | ||
#' @examples | ||
#' \dontrun{ | ||
#' # Updates the babette dependencies without asking | ||
#' } | ||
#' beastier::remove_beaustier_folders() | ||
#' @export | ||
update_babette <- function(upgrade = "default") { | ||
repo_names <- c( | ||
"ropensci/beautier", "ropensci/tracerer", "ropensci/beastier", | ||
"ropensci/mauricer" | ||
stop( | ||
"'update_babette' is deprecated, ", | ||
"as it did not follow CRAN guidelines. ", | ||
"", | ||
"Tip: one can use 'babetteinstall::updateba_bette' ", | ||
"(from 'https://github.com/richelbilderbeek/babetteinstall')" | ||
) | ||
for (repo_name in repo_names) { | ||
remotes::install_github( | ||
repo_name, | ||
ref = "develop", | ||
quiet = TRUE, | ||
dependencies = TRUE, | ||
upgrade = upgrade | ||
) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
test_that("update in silence", { | ||
if (!beautier::is_on_ci()) return() | ||
update_babette() | ||
expect_silent(update_babette()) | ||
expect_error(update_babette(), "deprecated") | ||
}) |