Skip to content

Commit

Permalink
Make sure R/ exists and nudge to re-document
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Mar 20, 2024
1 parent c7a792c commit 7fe7db0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/documentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
#' @export
use_package_doc <- function(open = rlang::is_interactive()) {
check_is_package("use_package_doc()")
use_directory("R")
use_template(
"packagename-package.R",
package_doc_path(),
open = open
)
ui_bullets(c(
"_" = "Run {.run devtools::document()} to update package-level documentation."
))
}

package_doc_path <- function() {
Expand Down

0 comments on commit 7fe7db0

Please sign in to comment.