Skip to content

Commit cdc0d61

Browse files
committed
docs: fix docs
1 parent 7f92035 commit cdc0d61

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

R/pkgreview.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ create_from_github <- function(pkg_repo, destdir, open) {
246246
file.path(destdir, zip_name),
247247
file.path(destdir, fs::path_file(pkg_repo))
248248
)
249-
fs::dir_create(fs::path(destdir, fs::path_file(pkg_repo), ".git"))
249+
gert::git_init(fs::path(destdir, fs::path_file(pkg_repo)))
250250
return(TRUE)
251251
}
252252

R/render-templates.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#'
1212
#' @param pkg_data package metadata generated by pkgreview_getdata()
1313
#' @param template character string, one of `review` or `editor`.
14+
#' @param destdir where to save the template
1415
#'
1516
#' @export
1617
# @importFrom usethis getFromNamespace check_installed
@@ -52,8 +53,9 @@ pkgreview_readme_md <- function(pkg_data, destdir) {
5253
#' Clone an up to date copy of the specified ropensci software
5354
#' review/editor response template.
5455
#' @param template character string, one of `review` or `editor`.
56+
#' @param destdir where to save the template
5557
#'
56-
#' @return writes a `{template}.md` checklist template file in the project root.
58+
#' @return writes a `{template}.md` checklist template file in `destdir`.
5759
#' @export
5860
#'
5961
#' @examples

man/pkgreview_index_rmd.Rd

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/use_onboarding_tmpl.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)