Skip to content

Commit bccdef4

Browse files
committed
Roxygenize
Signed-off-by: Stefan Widgren <[email protected]>
1 parent fd02b80 commit bccdef4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Collate:
2727
'blame.r'
2828
'blob.r'
2929
'branch.r'
30-
'bundle_repo.r'
30+
'bundle_r_package.r'
3131
'checkout.r'
3232
'commit.r'
3333
'config.r'

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exportMethods(branch_rename)
4444
exportMethods(branch_set_upstream)
4545
exportMethods(branch_target)
4646
exportMethods(branches)
47-
exportMethods(bundle_repo)
47+
exportMethods(bundle_r_package)
4848
exportMethods(checkout)
4949
exportMethods(clone)
5050
exportMethods(commit)

man/bundle_repo-methods.Rd renamed to man/bundle_r_package-methods.Rd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
% Generated by roxygen2 (4.1.1): do not edit by hand
2-
% Please edit documentation in R/bundle_repo.r
2+
% Please edit documentation in R/bundle_r_package.r
33
\docType{methods}
4-
\name{bundle_repo}
5-
\alias{bundle_repo}
6-
\alias{bundle_repo,git_repository-method}
4+
\name{bundle_r_package}
5+
\alias{bundle_r_package}
6+
\alias{bundle_r_package,git_repository-method}
77
\title{Bundle bare repo of package}
88
\usage{
9-
bundle_repo(repo)
9+
bundle_r_package(repo)
1010

11-
\S4method{bundle_repo}{git_repository}(repo)
11+
\S4method{bundle_r_package}{git_repository}(repo)
1212
}
1313
\arguments{
1414
\item{repo}{The repository with package to bundle.}
@@ -30,7 +30,7 @@ path <- file.path(path, "git2r")
3030
repo <- clone("https://github.com/ropensci/git2r.git", path)
3131

3232
## Bundle bare repository in package
33-
bundle_repo(repo)
33+
bundle_r_package(repo)
3434

3535
## Build and install bundled package
3636
wd <- setwd(dirname(path))
@@ -45,7 +45,7 @@ library(git2r)
4545

4646
## Summarize last five commits of bundled repo
4747
repo <- repository(system.file("git2r.git", package = "git2r"))
48-
invisible(lapply(commits(repo)[1:5], summary))
48+
invisible(lapply(commits(repo, n = 5), summary))
4949

5050
## Plot content of bundled repo
5151
plot(repo)

0 commit comments

Comments
 (0)