Skip to content

Commit 51d3131

Browse files
committed
don't clean up examples
1 parent 5a311fa commit 51d3131

18 files changed

+0
-107
lines changed

R/recent_commit.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@
6868
#' # still points to the third commit as this is the latest commit in which the
6969
#' # data was present
7070
#' recent_commit("iris", repo, data = TRUE)
71-
#'
72-
#' #' clean up
73-
#' junk <- file.remove(
74-
#' rev(list.files(repo_path, full.names = TRUE, recursive = TRUE,
75-
#' include.dirs = TRUE, all.files = TRUE)),
76-
#' repo_path)
7771
recent_commit <- function(file, root, data = FALSE) {
7872
UseMethod("recent_commit", root)
7973
}

R/relabel.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@
6161
#' read_vc("relabel", repo)
6262
#' # relabel() changed the metadata, not the raw data
6363
#' status(repo)
64-
#'
65-
#' # clean up
66-
#' junk <- file.remove(
67-
#' rev(list.files(repo_path, full.names = TRUE, recursive = TRUE,
68-
#' include.dirs = TRUE, all.files = TRUE)),
69-
#' repo_path)
7064
#' @family storage
7165
relabel <- function(file, root = ".", change) {
7266
UseMethod("relabel", change)

R/rename_variable.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@
4242
#' # check the changes
4343
#' read_vc("rename", repo)
4444
#' status(repo)
45-
#'
46-
#' # clean up
47-
#' junk <- file.remove(
48-
#' rev(list.files(repo_path, full.names = TRUE, recursive = TRUE,
49-
#' include.dirs = TRUE, all.files = TRUE)),
50-
#' repo_path)
5145
#' @family storage
5246
rename_variable <- function(file, change, root = ".", ...) {
5347
UseMethod("rename_variable", root)

R/upgrade_data.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
#' upgrade_data(file = "iris", root = root)
2626
#' # use path = "." to upgrade all git2rdata objects under root
2727
#' upgrade_data(path = ".", root = root)
28-
#'
29-
#' # clean up
30-
#' junk <- file.remove(list.files(root, full.names = TRUE), root)
3128
upgrade_data <- function(file, root = ".", verbose, ..., path) {
3229
UseMethod("upgrade_data", root)
3330
}

man-roxygen/example_io.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,3 @@
5656
#' iris[1:6, ], "iris2", repo, sorting = "Sepal.Width", optimize = FALSE
5757
#' )
5858
#' status(repo)
59-
#'
60-
#' # clean up
61-
#' junk <- file.remove(
62-
#' list.files(root, full.names = TRUE, recursive = TRUE), root)
63-
#' junk <- file.remove(
64-
#' rev(list.files(repo_path, full.names = TRUE, recursive = TRUE,
65-
#' include.dirs = TRUE, all.files = TRUE)),
66-
#' repo_path)

man-roxygen/example_isgit2r.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,3 @@
2121
#' junk <- file.remove(file.path(root, "iris.tsv"))
2222
#' is_git2rmeta("iris", root)
2323
#' is_git2rdata("iris", root)
24-
#'
25-
#' # clean up
26-
#' junk <- file.remove(list.files(root, full.names = TRUE), root)

man-roxygen/example_prune.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,3 @@
6464
#' # check the removal
6565
#' list_data(repo)
6666
#' status(repo)
67-
#'
68-
#' # clean up
69-
#' junk <- file.remove(
70-
#' list.files(root, full.names = TRUE, recursive = TRUE), root)
71-
#' junk <- file.remove(
72-
#' rev(list.files(repo_path, full.names = TRUE, recursive = TRUE,
73-
#' include.dirs = TRUE, all.files = TRUE)),
74-
#' repo_path)

man/is_git2rdata.Rd

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

man/is_git2rmeta.Rd

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

man/list_data.Rd

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

0 commit comments

Comments
 (0)