Skip to content

Commit a007ec0

Browse files
committed
add 'overwrite = T' to all fs::dir_copy calls
GH runners are failing in trying to copy a single .Rbuildignore file, but I can't repeat that failure anywhere ...
1 parent 9cc1d21 commit a007ec0

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: orgmetrics
22
Title: Metrics for Your GitHub Organization
3-
Version: 0.1.2.092
3+
Version: 0.1.2.093
44
Authors@R:
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/orgmetrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/orgmetrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.2.092",
11+
"version": "0.1.2.093",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

tests/testthat/helper-org-data.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,16 @@ mock_collate_org_data <- function (end_date = Sys.Date ()) {
6363
if (!fs::dir_exists (org_dir)) {
6464
fs::dir_create (org_dir)
6565
}
66-
path1 <- fs::dir_copy (path, fs::path (org_dir, "testpkg1"))
67-
path2 <- fs::dir_copy (path, fs::path (org_dir, "testpkg2"))
66+
path1 <- fs::dir_copy (
67+
path,
68+
fs::path (org_dir, "testpkg1"),
69+
overwrite = TRUE
70+
)
71+
path2 <- fs::dir_copy (
72+
path,
73+
fs::path (org_dir, "testpkg2"),
74+
overwrite = TRUE
75+
)
6876
fs::dir_delete (path)
6977

7078
d1 <- desc::desc_set ("Package" = "testpkg1", file = path1)

tests/testthat/test-fn-call-network.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ test_that ("function call network", {
1212
repos <- c ("orgmetrics", "repometrics")
1313
repos <- vapply (repos, function (repo) {
1414
tmp <- generate_test_pkg ()
15-
path <- fs::dir_copy (tmp, fs::path (d, "ropensci-review-tools", repo))
15+
path <- fs::dir_copy (
16+
tmp,
17+
fs::path (d, "ropensci-review-tools", repo),
18+
overwrite = TRUE
19+
)
1620
fs::path_rel (path, start = d)
1721
}, character (1L))
1822
pkgs <- data.frame (

tests/testthat/test-utils.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ test_that ("write pkgs_json", {
3535
repos <- c ("orgmetrics", "repometrics")
3636
repos <- vapply (repos, function (repo) {
3737
tmp <- generate_test_pkg ()
38-
path <- fs::dir_copy (tmp, fs::path (d, "ropensci-review-tools", repo))
38+
path <- fs::dir_copy (
39+
tmp,
40+
fs::path (d, "ropensci-review-tools", repo),
41+
overwrite = TRUE
42+
)
3943
fs::path_rel (path, start = d)
4044
}, character (1L))
4145
pkgs <- data.frame (
@@ -66,7 +70,11 @@ test_that ("clone gh org repos", {
6670
repos <- c ("orgmetrics", "repometrics")
6771
repos <- vapply (repos, function (repo) {
6872
tmp <- generate_test_pkg ()
69-
path <- fs::dir_copy (tmp, fs::path (d, "ropensci-review-tools", repo))
73+
path <- fs::dir_copy (
74+
tmp,
75+
fs::path (d, "ropensci-review-tools", repo),
76+
overwrite = TRUE
77+
)
7078
fs::path_rel (path, start = d)
7179
}, character (1L))
7280
pkgs <- data.frame (

0 commit comments

Comments
 (0)