-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ellipsis for all functions taking dots
Fixes #2016
- Loading branch information
Showing
19 changed files
with
229 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ Imports: | |
callr, | ||
cli, | ||
digest, | ||
ellipsis, | ||
git2r (>= 0.23.0), | ||
httr (>= 0.4), | ||
jsonlite, | ||
|
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
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
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
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
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
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,59 +1,98 @@ | ||
#' @importFrom ellipsis check_dots_used | ||
with_ellipsis <- function(fun) { | ||
b <- body(fun) | ||
ellipsis_call <- as.call(c(call("::", as.symbol("ellipsis"), as.symbol("check_dots_used")), list())) | ||
|
||
b <- as.call(c(as.symbol("{"), ellipsis_call, as.list(b[-1]))) | ||
body(fun) <- b | ||
fun | ||
} | ||
|
||
#' Functions re-exported from the remotes package | ||
#' | ||
|
||
#' 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. | ||
#' | ||
#' Follow the links below to see the documentation. | ||
#' [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()]. | ||
#' | ||
#' @importFrom remotes install_bioc | ||
#' @name remote-reexports | ||
#' @keywords internal | ||
#' @export | ||
remotes::install_bioc | ||
install_bioc <- with_ellipsis(remotes::install_bioc) | ||
|
||
#' @importFrom remotes install_bitbucket | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_bitbucket | ||
install_bitbucket <- with_ellipsis(remotes::install_bitbucket) | ||
|
||
#' @importFrom remotes install_cran | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_cran | ||
install_cran <- with_ellipsis(remotes::install_cran) | ||
|
||
#' @importFrom remotes install_dev | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_dev | ||
install_dev <- with_ellipsis(remotes::install_dev) | ||
|
||
#' @importFrom remotes install_git | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_git | ||
install_git <- with_ellipsis(remotes::install_git) | ||
|
||
#' @importFrom remotes install_github | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_github | ||
install_github <- with_ellipsis(remotes::install_github) | ||
|
||
#' @importFrom remotes github_pull | ||
#' @rdname reexports | ||
#' @export | ||
remotes::github_pull | ||
|
||
#' @importFrom remotes github_release | ||
#' @rdname reexports | ||
#' @export | ||
remotes::github_release | ||
|
||
#' @importFrom remotes install_gitlab | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_gitlab | ||
install_gitlab <- with_ellipsis(remotes::install_gitlab) | ||
|
||
#' @importFrom remotes install_local | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_local | ||
install_local <- with_ellipsis(remotes::install_local) | ||
|
||
#' @importFrom remotes install_svn | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_svn | ||
install_svn <- with_ellipsis(remotes::install_svn) | ||
|
||
#' @importFrom remotes install_url | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_url | ||
install_url <- with_ellipsis(remotes::install_url) | ||
|
||
#' @importFrom remotes install_version | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::install_version | ||
install_version <- with_ellipsis(remotes::install_version) | ||
|
||
#' @importFrom remotes update_packages | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::update_packages | ||
update_packages <- with_ellipsis(remotes::update_packages) | ||
|
||
#' @importFrom remotes dev_package_deps | ||
#' @rdname remote-reexports | ||
#' @export | ||
remotes::dev_package_deps | ||
dev_packge_deps <- with_ellipsis(remotes::dev_package_deps) |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
I assume this is not intentional 😬