Skip to content

Commit

Permalink
fix 'rm_tabs' when pkg has tabs #68
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Oct 23, 2024
1 parent 44d2d19 commit 3768114
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgstats
Title: Metrics of R Packages
Version: 0.2.0.034
Version: 0.2.0.035
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
4 changes: 2 additions & 2 deletions R/tag-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ rm_tabs <- function (d, nspaces = 2) {
)
tmpd <- fs::path (fs::path_temp (), tmpd)
fs::dir_create (tmpd, recurse = TRUE)
chk <- fs::file_copy (d, tmpd) # copies 'd' as sub-dir of tmpd
if (any (!chk)) {
chk <- fs::dir_copy (d, tmpd) # copies 'd' as sub-dir of tmpd
if (length (chk) != length (d)) {

Check warning on line 172 in R/tag-data.R

View check run for this annotation

Codecov / codecov/patch

R/tag-data.R#L171-L172

Added lines #L171 - L172 were not covered by tests
stop ("Unable to copy files from [", d, "] to tempdir()")
}

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgstats",
"issueTracker": "https://github.com/ropensci-review-tools/pkgstats/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.0.034",
"version": "0.2.0.035",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 3768114

Please sign in to comment.