|
18 | 18 | ##' |
19 | 19 | ##' Clone the package git repository as a bare repository to |
20 | 20 | ##' \code{pkg/inst/pkg.git} |
21 | | -##' @rdname bundle_repo-methods |
| 21 | +##' @rdname bundle_r_package-methods |
22 | 22 | ##' @docType methods |
23 | 23 | ##' @param repo The repository with package to bundle. |
24 | 24 | ##' @return Invisible bundled S4 \code{\linkS4class{git_repository}} |
|
33 | 33 | ##' repo <- clone("https://github.com/ropensci/git2r.git", path) |
34 | 34 | ##' |
35 | 35 | ##' ## Bundle bare repository in package |
36 | | -##' bundle_repo(repo) |
| 36 | +##' bundle_r_package(repo) |
37 | 37 | ##' |
38 | 38 | ##' ## Build and install bundled package |
39 | 39 | ##' wd <- setwd(dirname(path)) |
|
48 | 48 | ##' |
49 | 49 | ##' ## Summarize last five commits of bundled repo |
50 | 50 | ##' repo <- repository(system.file("git2r.git", package = "git2r")) |
51 | | -##' invisible(lapply(commits(repo)[1:5], summary)) |
| 51 | +##' invisible(lapply(commits(repo, n = 5), summary)) |
52 | 52 | ##' |
53 | 53 | ##' ## Plot content of bundled repo |
54 | 54 | ##' plot(repo) |
55 | 55 | ##' } |
56 | | -setGeneric("bundle_repo", |
| 56 | +setGeneric("bundle_r_package", |
57 | 57 | signature = "repo", |
58 | 58 | function(repo) |
59 | | - standardGeneric("bundle_repo")) |
| 59 | + standardGeneric("bundle_r_package")) |
60 | 60 |
|
61 | | -##' @rdname bundle_repo-methods |
| 61 | +##' @rdname bundle_r_package-methods |
62 | 62 | ##' @export |
63 | | -setMethod("bundle_repo", |
| 63 | +setMethod("bundle_r_package", |
64 | 64 | signature(repo = "git_repository"), |
65 | 65 | function (repo) |
66 | 66 | { |
|
0 commit comments