Skip to content

Commit

Permalink
Correct issue w/ over-writing package documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Feb 26, 2024
1 parent bf28cb9 commit fbc3bbd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/path_document.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,16 @@ path_document <- function(path,
overwrite = overwrite
)

withr::with_dir(
usethis::with_project(
pkg_dir,
{
if (markdown) {
use_roxygen_md(overwrite = TRUE)
}

use_package_doc(FALSE)
}
},
quiet = TRUE
)

suppressPackageStartupMessages(
Expand All @@ -182,6 +183,10 @@ path_document <- function(path,
clean = clean
)
)

suppressMessages(usethis::proj_get())

invisible(pkg_dir)
}

#' [path_roxygenise()] is the same as [path_document()]
Expand Down

0 comments on commit fbc3bbd

Please sign in to comment.