Skip to content

Commit 01e8ee0

Browse files
committed
Prepend underscore
1 parent 9634e4c commit 01e8ee0

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

.Rbuildignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
^\.Rproj\.user$
2424
^_pkgdown\.yml$
2525
^_targets$
26+
^_targets_r$
2627
^_targets\.R$
28+
^_targets\.Rmd$
2729
^_targets\.yaml$
2830
^docs$
2931
^CODE_OF_CONDUCT.md$
@@ -36,5 +38,3 @@
3638
^paper\.md$
3739
^paper\.bib$
3840
_packages.R
39-
^targets\.Rmd$
40-

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
.RData
88
.Rhistory
99
.Rproj.user/
10-
_targets
11-
_targets.R
10+
1211
docs
1312
inst/doc
1413
vignettes/*.html
1514
README.html
1615
paper.html
1716
.Rproj.user
1817
_packages.R
19-
_targets.yaml
18+
_targets
19+
_targets.R
20+
_targets.Rmd
2021
_targets_r
21-
targets.Rmd
22+
_targets.yaml

R/use_targets.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#' use_targets(open = FALSE)
1616
#' })
1717
#' }
18-
use_targets <- function(path = "targets.Rmd", open = interactive()) {
18+
use_targets <- function(path = "_targets.Rmd", open = interactive()) {
1919
# Covered in tests/interactive/test-use_targets.R.
2020
# nocov start
2121
assert_package("usethis")

man/use_targets.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/interactive/test-tar_edit.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
tar_test("tar_edit", {
2-
skip_if_not_installed("usethis")
3-
tar_script()
4-
tar_edit() # Should open _targets.R.
5-
})
1+
tar_script()
2+
tar_edit()
3+
unlink("_targets.R")
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
tar_test("use_targets()", {
2-
use_targets(path = "targets.Rmd", open = FALSE)
3-
expect_true(file.exists("targets.Rmd"))
4-
})
1+
use_targets(path = "_targets.Rmd", open = FALSE)
2+
expect_true(file.exists("_targets.Rmd"))
3+
unlink("_targets.Rmd")

0 commit comments

Comments
 (0)