We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3506dce commit d91ba03Copy full SHA for d91ba03
src/library/tools/R/check.R
@@ -7563,12 +7563,14 @@ add_dummies <- function(dir, Log)
7563
domain = NA, call. = FALSE, immediate. = TRUE)
7564
next
7565
}
7566
- if (length(contents) < 1 || !endsWith(contents[1], "/")) {
+ if (length(contents) < 1L) {
7567
warning(sQuote(pkg), " does not contain a directory, skipping\n",
7568
7569
7570
+ } else {
7571
+ ## some people omit the directory itself from the tarball
7572
+ pkgname0 <- sub("/.*", "", contents[1L])
7573
- pkgname0 <- sub("/$", "", contents[1])
7574
} else {
7575
warning(sQuote(pkg), " is neither a file nor directory, skipping\n",
7576
0 commit comments