Skip to content

Commit

Permalink
catch pkgs with no R dir in 'extract_tarball'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Nov 5, 2024
1 parent 3b01dbc commit cf99879
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.047
Version: 0.2.0.048
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
6 changes: 5 additions & 1 deletion R/extract-tarball.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ extract_tarball <- function (tarball) {
rename_files_in_r <- function (path) {

path <- fs::path_real (path)
f_sq <- fs::dir_ls (fs::path (path, "R"), regexp = "\\.(s|S|q)$")
path_r <- fs::path (path, "R")
if (!fs::dir_exists (path_r)) {
return (FALSE)
}
f_sq <- fs::dir_ls (path_r, regexp = "\\.(s|S|q)$")

if (length (f_sq) > 0) {

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.047",
"version": "0.2.0.048",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit cf99879

Please sign in to comment.