Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve todo docs #254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 16 additions & 19 deletions R/todo.R
@@ -1,13 +1,13 @@

#' Manage the package checking to-do list.
#'
#' `revdep_todo()` tells you which packages still need to be checked.
#' `revdep_add()` adds a single package to the to-do list.
#' `revdep_rm()` removes packages from the todo list.

#' `revdep_add_broken()` re-adds all broken packages from the last check
#' (this is useful if you think you've fixed the underlying problem in
#' your package).
#' @description
#' * `revdep_add()` adds a single package to the to-do list.
#' * `revdep_add_broken()` re-adds all broken packages from the last check
#' (this is useful if you think you've fixed the underlying problem in
#' your package).
#' * `revdep_add_new()` adds any new dependencies since the last run.
#' * `revdep_rm()` removes packages from the todo list.
#' * `revdep_todo()` tells you which packages still need to be checked.
#'
#' @inheritParams revdep_check
#' @param packages Character vector of package names to add
Expand All @@ -16,7 +16,6 @@
#' @param timeout_failures Whether to re-add packages that timed out.
#'
#' @export

revdep_add <- function(pkg = ".", packages) {
pkg <- pkg_check(pkg)

Expand All @@ -31,8 +30,8 @@ revdep_add <- function(pkg = ".", packages) {

#' @export
#' @rdname revdep_add

revdep_add_broken <- function(pkg = ".", install_failures = FALSE,
revdep_add_broken <- function(pkg = ".",
install_failures = FALSE,
timeout_failures = FALSE) {
pkg <- pkg_check(pkg)

Expand All @@ -51,7 +50,6 @@ revdep_add_broken <- function(pkg = ".", install_failures = FALSE,

#' @export
#' @rdname revdep_add

revdep_add_new <- function(pkg = ".") {
pkg <- pkg_check(pkg)

Expand All @@ -72,17 +70,16 @@ revdep_add_new <- function(pkg = ".") {

#' @export
#' @rdname revdep_add
revdep_rm <- function(pkg = ".", packages) {
pkg <- pkg_check(pkg)
db_todo_rm(pkg, packages)

revdep_todo <- function(pkg = ".") {
db_todo_status(pkg)
invisible(revdep_todo(pkg))
}

#' @export
#' @rdname revdep_add

revdep_rm <- function(pkg = ".", packages) {
revdep_todo <- function(pkg = ".") {
pkg <- pkg_check(pkg)
db_todo_rm(pkg, packages)

invisible(revdep_todo(pkg))
db_todo_status(pkg)
}
17 changes: 10 additions & 7 deletions man/revdep_add.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.