diff --git a/NAMESPACE b/NAMESPACE index 46884560e..f09a6aa73 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -95,21 +95,6 @@ importFrom(pkgload,check_dep_version) importFrom(pkgload,is_loading) importFrom(pkgload,parse_deps) importFrom(pkgload,unload) -importFrom(remotes,dev_package_deps) -importFrom(remotes,github_pull) -importFrom(remotes,github_release) -importFrom(remotes,install_bioc) -importFrom(remotes,install_bitbucket) -importFrom(remotes,install_cran) -importFrom(remotes,install_dev) -importFrom(remotes,install_git) -importFrom(remotes,install_github) -importFrom(remotes,install_gitlab) -importFrom(remotes,install_local) -importFrom(remotes,install_svn) -importFrom(remotes,install_url) -importFrom(remotes,install_version) -importFrom(remotes,update_packages) importFrom(sessioninfo,package_info) importFrom(sessioninfo,session_info) importFrom(stats,update) diff --git a/NEWS.md b/NEWS.md index 3d9740ba0..7781c5c6b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ * `build_manual()` reports more details on failure (#2586). * New `check_mac_devel()` function to check a package using the macOS builder at https://mac.r-project.org/macbuilder/submit.html (@nfrerebeau, #2507) * `is_loading()` is now re-exported from pkgload (#2556). +* Package installation functions are now deprecated: `install_bioc()`, `install_bitbucket()`, `install_cran()`, `install_deps()`, `install_dev()`, `install_dev_deps()`, `install_git()`, `install_github()`, `install_gitlab()`, `install_local()`, `install_svn()`, `install_url()`, `install_version()`, `update_packages()`, `dev_package_deps()`, `github_pull()`, and `github_release()`. We now recommend pak for general package installation. See `?install-deprecated` for migration guidance. * `load_all()` now errors if called recursively, i.e. if you accidentally include a `load_all()` call in one of your R source files (#2617). * `show_news()` now looks for NEWS files in the same locations as `utils::news()`: `inst/NEWS.Rd`, `NEWS.md`, `NEWS`, and `inst/NEWS` (@arcresu, #2499). diff --git a/R/install.R b/R/install.R index b56402cbb..6abe6d3d5 100644 --- a/R/install.R +++ b/R/install.R @@ -148,11 +148,15 @@ install <- invisible(TRUE) } -#' Install package dependencies if needed. +#' Install package dependencies if needed +#' +#' @description +#' `r lifecycle::badge("deprecated")` +#' +#' These functions are deprecated. Please use `pak::local_install_deps()` +#' instead of `install_deps()` and `pak::local_install_dev_deps()` instead of +#' `install_dev_deps()`. #' -#' `install_deps()` will install the -#' user dependencies needed to run the package, `install_dev_deps()` will also -#' install the development dependencies needed to test and build the package. #' @inheritParams install #' @inherit remotes::install_deps #' @export @@ -167,6 +171,11 @@ install_deps <- function( build_opts = c("--no-resave-data", "--no-manual", " --no-build-vignettes"), ... ) { + lifecycle::deprecate_warn( + "2.5.0", + "install_deps()", + "pak::local_install_deps()" + ) pkg <- as.package(pkg) check_dots_used(action = getOption("devtools.ellipsis_action", rlang::warn)) @@ -197,6 +206,11 @@ install_dev_deps <- function( build_opts = c("--no-resave-data", "--no-manual", " --no-build-vignettes"), ... ) { + lifecycle::deprecate_warn( + "2.5.0", + "install_dev_deps()", + "pak::local_install_dev_deps()" + ) remotes::update_packages("roxygen2") pkg <- as.package(pkg) diff --git a/R/remotes.R b/R/remotes.R index 8d7cf7689..91e3b360c 100644 --- a/R/remotes.R +++ b/R/remotes.R @@ -1,129 +1,173 @@ #' @importFrom ellipsis check_dots_used -with_ellipsis <- function(fun) { - b <- body(fun) +NULL - f <- function(...) { - ellipsis::check_dots_used( - action = getOption("devtools.ellipsis_action", rlang::warn) - ) - - !!b - } - f <- rlang::expr_interp(f) - - body(fun) <- body(f) - fun -} - -with_pkgbuild_build_tools <- function(fun) { - b <- body(fun) - pkgbuild_call <- as.call(c( - call("::", as.symbol("pkgbuild"), as.symbol("with_build_tools")), - b, - list(required = FALSE) - )) - - body(fun) <- pkgbuild_call - fun -} - -#' Functions re-exported from the remotes package +#' Deprecated package installation functions #' - -#' These functions are re-exported from the remotes package. They differ only -#' that the ones in devtools use the [ellipsis] package to ensure all dotted -#' arguments are used. +#' @description +#' `r lifecycle::badge("deprecated")` +#' +#' These functions have been deprecated in favor of [pak](https://pak.r-lib.org/), +#' as that is what we now recommend for package installation. There are a few +#' functions which have no pak equivalent, where you can instead call the +#' old remotes functions directly. +#' +#' ## Migration guide #' -#' Follow the links below to see the documentation. -#' [remotes::install_bioc()], [remotes::install_bitbucket()], [remotes::install_cran()], [remotes::install_dev()], -#' [remotes::install_git()], [remotes::install_github()], [remotes::install_gitlab()], [remotes::install_local()], -#' [remotes::install_svn()], [remotes::install_url()], [remotes::install_version()], [remotes::update_packages()], -#' [remotes::dev_package_deps()]. +#' | devtools function | Replacement | +#' |-------------------|-------------| +#' | `install_bioc("pkg")` | `pak::pak("bioc::pkg")` | +#' | `install_bitbucket("user/repo")` | `remotes::install_bitbucket("user/repo")` | +#' | `install_cran("pkg")` | `pak::pak("pkg")` | +#' | `install_dev("pkg")` | `remotes::install_dev("pkg")` | +#' | `install_git("url")` | `pak::pak("git::url")` | +#' | `install_github("user/repo")` | `pak::pak("user/repo")` | +#' | `install_gitlab("user/repo")` | `pak::pak("gitlab::user/repo")` | +#' | `install_local("path")` | `pak::pak("local::path")` | +#' | `install_svn("url")` | `remotes::install_svn("url")` | +#' | `install_url("url")` | `pak::pak("url::url")` | +#' | `install_version("pkg", "1.0.0")` | `pak::pak("pkg@1.0.0")` | +#' | `update_packages("pkg")` | `pak::pak("pkg")` | +#' | `dev_package_deps()` | `pak::local_dev_deps()` | +#' | `github_pull("123")` | `remotes::github_pull("123")` | +#' | `github_release()` | `remotes::github_release()` | #' -#' @importFrom remotes install_bioc -#' @name remote-reexports +#' @name install-deprecated #' @keywords internal +NULL + +#' @rdname install-deprecated #' @export -install_bioc <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_bioc)) +install_bioc <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_bioc()", + I('pak::pak("bioc::pkg")') + ) + pkgbuild::with_build_tools(remotes::install_bioc(...), required = FALSE) +} -#' @importFrom remotes install_bitbucket -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_bitbucket <- with_pkgbuild_build_tools(with_ellipsis( - remotes::install_bitbucket -)) +install_bitbucket <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_bitbucket()", + "remotes::install_bitbucket()" + ) + pkgbuild::with_build_tools(remotes::install_bitbucket(...), required = FALSE) +} -#' @importFrom remotes install_cran -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_cran <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_cran)) +install_cran <- function(...) { + lifecycle::deprecate_warn("2.5.0", "install_cran()", "pak::pak()") + pkgbuild::with_build_tools(remotes::install_cran(...), required = FALSE) +} -#' @importFrom remotes install_dev -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_dev <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_dev)) +install_dev <- function(...) { + lifecycle::deprecate_warn("2.5.0", "install_dev()", "remotes::install_dev()") + pkgbuild::with_build_tools(remotes::install_dev(...), required = FALSE) +} -#' @importFrom remotes install_git -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_git <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_git)) +install_git <- function(...) { + lifecycle::deprecate_warn("2.5.0", "install_git()", I('pak::pak("git::url")')) + pkgbuild::with_build_tools(remotes::install_git(...), required = FALSE) +} -#' @importFrom remotes install_github -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_github <- with_pkgbuild_build_tools(with_ellipsis( - remotes::install_github -)) +install_github <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_github()", + I('pak::pak("user/repo")') + ) + pkgbuild::with_build_tools(remotes::install_github(...), required = FALSE) +} -#' @importFrom remotes github_pull -#' @rdname reexports +#' @rdname install-deprecated #' @export -remotes::github_pull +install_gitlab <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_gitlab()", + I('pak::pak("gitlab::user/repo")') + ) + pkgbuild::with_build_tools(remotes::install_gitlab(...), required = FALSE) +} -#' @importFrom remotes github_release -#' @rdname reexports +#' @rdname install-deprecated #' @export -remotes::github_release +install_local <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_local()", + I('pak::pak("local::path")') + ) + pkgbuild::with_build_tools(remotes::install_local(...), required = FALSE) +} -#' @importFrom remotes install_gitlab -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_gitlab <- with_pkgbuild_build_tools(with_ellipsis( - remotes::install_gitlab -)) +install_svn <- function(...) { + lifecycle::deprecate_warn("2.5.0", "install_svn()", "remotes::install_svn()") + pkgbuild::with_build_tools(remotes::install_svn(...), required = FALSE) +} -#' @importFrom remotes install_local -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_local <- with_pkgbuild_build_tools(with_ellipsis( - remotes::install_local -)) +install_url <- function(...) { + lifecycle::deprecate_warn("2.5.0", "install_url()", I('pak::pak("url::url")')) + pkgbuild::with_build_tools(remotes::install_url(...), required = FALSE) +} -#' @importFrom remotes install_svn -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_svn <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_svn)) +install_version <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "install_version()", + I('pak::pak("pkg@version")') + ) + pkgbuild::with_build_tools(remotes::install_version(...), required = FALSE) +} -#' @importFrom remotes install_url -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_url <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_url)) +update_packages <- function(...) { + lifecycle::deprecate_warn("2.5.0", "update_packages()", "pak::pak()") + pkgbuild::with_build_tools(remotes::update_packages(...), required = FALSE) +} -#' @importFrom remotes install_version -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -install_version <- with_pkgbuild_build_tools(with_ellipsis( - remotes::install_version -)) +dev_package_deps <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "dev_package_deps()", + "pak::local_dev_deps()" + ) + pkgbuild::with_build_tools(remotes::dev_package_deps(...), required = FALSE) +} -#' @importFrom remotes update_packages -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -update_packages <- with_pkgbuild_build_tools(with_ellipsis( - remotes::update_packages -)) +github_pull <- function(...) { + lifecycle::deprecate_warn("2.5.0", "github_pull()", "remotes::github_pull()") + remotes::github_pull(...) +} -#' @importFrom remotes dev_package_deps -#' @rdname remote-reexports +#' @rdname install-deprecated #' @export -dev_package_deps <- with_pkgbuild_build_tools(remotes::dev_package_deps) +github_release <- function(...) { + lifecycle::deprecate_warn( + "2.5.0", + "github_release()", + "remotes::github_release()" + ) + remotes::github_release(...) +} diff --git a/_pkgdown.yml b/_pkgdown.yml index 2cb2f760c..1206c76b0 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -31,23 +31,26 @@ reference: - test - title: Package Installation contents: - - starts_with("install") + - install - uninstall - title: Utilities contents: - bash - clean_vignettes - dev_sitrep - - github_pull - lint - missing_s3 - run_examples - session_info - show_news - starts_with("source_") - - update_packages - wd - save_all +- title: Deprecated + contents: + - install-deprecated + - install_deps + - devtools-deprecated news: releases: diff --git a/man/install-deprecated.Rd b/man/install-deprecated.Rd new file mode 100644 index 000000000..6585e4c08 --- /dev/null +++ b/man/install-deprecated.Rd @@ -0,0 +1,80 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/remotes.R +\name{install-deprecated} +\alias{install-deprecated} +\alias{install_bioc} +\alias{install_bitbucket} +\alias{install_cran} +\alias{install_dev} +\alias{install_git} +\alias{install_github} +\alias{install_gitlab} +\alias{install_local} +\alias{install_svn} +\alias{install_url} +\alias{install_version} +\alias{update_packages} +\alias{dev_package_deps} +\alias{github_pull} +\alias{github_release} +\title{Deprecated package installation functions} +\usage{ +install_bioc(...) + +install_bitbucket(...) + +install_cran(...) + +install_dev(...) + +install_git(...) + +install_github(...) + +install_gitlab(...) + +install_local(...) + +install_svn(...) + +install_url(...) + +install_version(...) + +update_packages(...) + +dev_package_deps(...) + +github_pull(...) + +github_release(...) +} +\description{ +\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} + +These functions have been deprecated in favor of \href{https://pak.r-lib.org/}{pak}, +as that is what we now recommend for package installation. There are a few +functions which have no pak equivalent, where you can instead call the +old remotes functions directly. +\subsection{Migration guide}{\tabular{ll}{ + devtools function \tab Replacement \cr + \code{install_bioc("pkg")} \tab \code{pak::pak("bioc::pkg")} \cr + \code{install_bitbucket("user/repo")} \tab \code{remotes::install_bitbucket("user/repo")} \cr + \code{install_cran("pkg")} \tab \code{pak::pak("pkg")} \cr + \code{install_dev("pkg")} \tab \code{remotes::install_dev("pkg")} \cr + \code{install_git("url")} \tab \code{pak::pak("git::url")} \cr + \code{install_github("user/repo")} \tab \code{pak::pak("user/repo")} \cr + \code{install_gitlab("user/repo")} \tab \code{pak::pak("gitlab::user/repo")} \cr + \code{install_local("path")} \tab \code{pak::pak("local::path")} \cr + \code{install_svn("url")} \tab \code{remotes::install_svn("url")} \cr + \code{install_url("url")} \tab \code{pak::pak("url::url")} \cr + \code{install_version("pkg", "1.0.0")} \tab \code{pak::pak("pkg@1.0.0")} \cr + \code{update_packages("pkg")} \tab \code{pak::pak("pkg")} \cr + \code{dev_package_deps()} \tab \code{pak::local_dev_deps()} \cr + \code{github_pull("123")} \tab \code{remotes::github_pull("123")} \cr + \code{github_release()} \tab \code{remotes::github_release()} \cr +} + +} +} +\keyword{internal} diff --git a/man/install_deps.Rd b/man/install_deps.Rd index cb253983b..56e7d6bac 100644 --- a/man/install_deps.Rd +++ b/man/install_deps.Rd @@ -3,7 +3,7 @@ \name{install_deps} \alias{install_deps} \alias{install_dev_deps} -\title{Install package dependencies if needed.} +\title{Install package dependencies if needed} \usage{ install_deps( pkg = ".", @@ -83,9 +83,11 @@ installing the package for development, consider setting \code{build} to when installing dependencies.} } \description{ -\code{install_deps()} will install the -user dependencies needed to run the package, \code{install_dev_deps()} will also -install the development dependencies needed to test and build the package. +\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} + +These functions are deprecated. Please use \code{pak::local_install_deps()} +instead of \code{install_deps()} and \code{pak::local_install_dev_deps()} instead of +\code{install_dev_deps()}. } \examples{ \dontrun{install_deps(".")} diff --git a/man/reexports.Rd b/man/reexports.Rd index 8393d78bf..6d0845234 100644 --- a/man/reexports.Rd +++ b/man/reexports.Rd @@ -1,6 +1,6 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/package-deps.R, R/pkgbuild.R, R/pkgload.R, -% R/remotes.R, R/session-info.R +% R/session-info.R \docType{import} \name{reexports} \alias{reexports} @@ -12,16 +12,9 @@ \alias{find_rtools} \alias{is_loading} \alias{unload} -\alias{github_pull} -\alias{github_release} \alias{session_info} \alias{package_info} \title{Objects exported from other packages} -\usage{ -github_pull(pull) - -github_release() -} \keyword{internal} \description{ These objects are imported from other packages. Follow the links diff --git a/man/remote-reexports.Rd b/man/remote-reexports.Rd deleted file mode 100644 index 6a9bcc3fb..000000000 --- a/man/remote-reexports.Rd +++ /dev/null @@ -1,231 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/remotes.R -\name{remote-reexports} -\alias{remote-reexports} -\alias{install_bioc} -\alias{install_bitbucket} -\alias{install_cran} -\alias{install_dev} -\alias{install_git} -\alias{install_github} -\alias{install_gitlab} -\alias{install_local} -\alias{install_svn} -\alias{install_url} -\alias{install_version} -\alias{update_packages} -\alias{dev_package_deps} -\title{Functions re-exported from the remotes package} -\usage{ -install_bioc( - repo, - mirror = getOption("BioC_git", download_url("git.bioconductor.org/packages")), - git = c("auto", "git2r", "external"), - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_bitbucket( - repo, - ref = "HEAD", - subdir = NULL, - auth_user = bitbucket_user(), - password = bitbucket_password(), - host = "api.bitbucket.org/2.0", - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_cran( - pkgs, - repos = getOption("repos"), - type = getOption("pkgType"), - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - ... -) - -install_dev(package, cran_url = getOption("repos")[["CRAN"]], ...) - -install_git( - url, - subdir = NULL, - ref = NULL, - branch = NULL, - credentials = git_credentials(), - git = c("auto", "git2r", "external"), - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_github( - repo, - ref = "HEAD", - subdir = NULL, - auth_token = github_pat(quiet), - host = "api.github.com", - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_gitlab( - repo, - subdir = NULL, - auth_token = gitlab_pat(quiet), - host = "gitlab.com", - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_local( - path = ".", - subdir = NULL, - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = !is_binary_pkg(path), - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_svn( - url, - subdir = NULL, - args = character(0), - revision = NULL, - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_url( - url, - subdir = NULL, - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -install_version( - package, - version = NULL, - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = FALSE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = "source", - ... -) - -update_packages( - packages = TRUE, - dependencies = NA, - upgrade = c("default", "ask", "always", "never"), - force = FALSE, - quiet = FALSE, - build = TRUE, - build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), - build_manual = FALSE, - build_vignettes = FALSE, - repos = getOption("repos"), - type = getOption("pkgType"), - ... -) - -dev_package_deps( - pkgdir = ".", - dependencies = NA, - repos = getOption("repos"), - type = getOption("pkgType") -) -} -\description{ -These functions are re-exported from the remotes package. They differ only -that the ones in devtools use the \link[ellipsis:ellipsis-package]{ellipsis::ellipsis} package to ensure all dotted -arguments are used. -} -\details{ -Follow the links below to see the documentation. -\code{\link[remotes:install_bioc]{remotes::install_bioc()}}, \code{\link[remotes:install_bitbucket]{remotes::install_bitbucket()}}, \code{\link[remotes:install_cran]{remotes::install_cran()}}, \code{\link[remotes:install_dev]{remotes::install_dev()}}, -\code{\link[remotes:install_git]{remotes::install_git()}}, \code{\link[remotes:install_github]{remotes::install_github()}}, \code{\link[remotes:install_gitlab]{remotes::install_gitlab()}}, \code{\link[remotes:install_local]{remotes::install_local()}}, -\code{\link[remotes:install_svn]{remotes::install_svn()}}, \code{\link[remotes:install_url]{remotes::install_url()}}, \code{\link[remotes:install_version]{remotes::install_version()}}, \code{\link[remotes:update_packages]{remotes::update_packages()}}, -\code{\link[remotes:package_deps]{remotes::dev_package_deps()}}. -} -\keyword{internal} diff --git a/tests/testthat/_snaps/remotes.md b/tests/testthat/_snaps/remotes.md new file mode 100644 index 000000000..b0498ea13 --- /dev/null +++ b/tests/testthat/_snaps/remotes.md @@ -0,0 +1,15 @@ +# github_ functions are deprecated + + Code + . <- github_pull(1) + Condition + Warning: + `github_pull()` was deprecated in devtools 2.5.0. + i Please use `remotes::github_pull()` instead. + Code + . <- github_release() + Condition + Warning: + `github_release()` was deprecated in devtools 2.5.0. + i Please use `remotes::github_release()` instead. + diff --git a/tests/testthat/test-remotes.R b/tests/testthat/test-remotes.R new file mode 100644 index 000000000..499ae9fce --- /dev/null +++ b/tests/testthat/test-remotes.R @@ -0,0 +1,6 @@ +test_that("github_ functions are deprecated", { + expect_snapshot({ + . <- github_pull(1) + . <- github_release() + }) +})