Skip to content

Commit 5afce3d

Browse files
committed
Rename 'bundle_repo' method to 'bundle_r_package'
Signed-off-by: Stefan Widgren <[email protected]>
1 parent e152299 commit 5afce3d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

R/bundle_repo.r

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
##'
1919
##' Clone the package git repository as a bare repository to
2020
##' \code{pkg/inst/pkg.git}
21-
##' @rdname bundle_repo-methods
21+
##' @rdname bundle_r_package-methods
2222
##' @docType methods
2323
##' @param repo The repository with package to bundle.
2424
##' @return Invisible bundled S4 \code{\linkS4class{git_repository}}
@@ -33,7 +33,7 @@
3333
##' repo <- clone("https://github.com/ropensci/git2r.git", path)
3434
##'
3535
##' ## Bundle bare repository in package
36-
##' bundle_repo(repo)
36+
##' bundle_r_package(repo)
3737
##'
3838
##' ## Build and install bundled package
3939
##' wd <- setwd(dirname(path))
@@ -48,19 +48,19 @@
4848
##'
4949
##' ## Summarize last five commits of bundled repo
5050
##' repo <- repository(system.file("git2r.git", package = "git2r"))
51-
##' invisible(lapply(commits(repo)[1:5], summary))
51+
##' invisible(lapply(commits(repo, n = 5), summary))
5252
##'
5353
##' ## Plot content of bundled repo
5454
##' plot(repo)
5555
##' }
56-
setGeneric("bundle_repo",
56+
setGeneric("bundle_r_package",
5757
signature = "repo",
5858
function(repo)
59-
standardGeneric("bundle_repo"))
59+
standardGeneric("bundle_r_package"))
6060

61-
##' @rdname bundle_repo-methods
61+
##' @rdname bundle_r_package-methods
6262
##' @export
63-
setMethod("bundle_repo",
63+
setMethod("bundle_r_package",
6464
signature(repo = "git_repository"),
6565
function (repo)
6666
{

0 commit comments

Comments
 (0)