Skip to content

Commit

Permalink
Deprecated sysreqs funtions: message(), not warning()
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jul 18, 2023
1 parent 0445096 commit d1ab915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/system-requirements.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DEFAULT_RSPM <- "https://packagemanager.rstudio.com"
#' local_system_requirements("ubuntu", "20.04")
local_system_requirements <- function(os = NULL, os_release = NULL, root = ".", execute = FALSE, sudo = execute, echo = FALSE) {

once_per_session(warning(
once_per_session(message(
"`pak::local_system_requirements()` is deprecated since pak 0.6.0.\n",
"Please use `pak::pkg_sysreqs()` instead.",
call. = FALSE
Expand Down Expand Up @@ -83,7 +83,7 @@ local_system_requirements <- function(os = NULL, os_release = NULL, root = ".",
#' pkg_system_requirements(c("curl", "iDontExist"), "ubuntu", "20.04")
pkg_system_requirements <- function(package, os = NULL, os_release = NULL, execute = FALSE, sudo = execute, echo = FALSE) {

once_per_session(warning(
once_per_session(message(
"`pak::pkg_system_requirements()` is deprecated since pak 0.6.0.\n",
"Please use `pak::pkg_sysreqs()` instead.",
call. = FALSE
Expand Down

0 comments on commit d1ab915

Please sign in to comment.