Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: checked
Title: Systematically Run R CMD Checks
Version: 0.6.2
Version: 0.6.3
Authors@R:
c(
person(
Expand Down
7 changes: 6 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# checked 0.6.1
# checked 0.6.3

* When fetching remotes dependencies, untar output if git endpoint
returns `.tar.gz` file.

# checked 0.6.2

* Ignore package-dep pairs duplicate in the `pkg_dependencies` helper
when constructing dependencies data.frame. This makes sure `checked`
Expand Down
11 changes: 10 additions & 1 deletion R/remotes.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,18 @@ get_remote_tasks.pkg_origin_remote <- function(x) {

get_remote_package_source <- function(remote) {
path <- file.path(path_remotes(), hash(remote))
if (dir.exists(path)) return(path)
if (file.exists(file.path(path, "DESCRIPTION"))) return(path)
dir_create(path)
tmp <- remotes::remote_download(remote, quiet = TRUE)
if (endsWith(tmp, ".tar.gz")) {
tmp2 <- tempfile()
untar(tmp, exdir = tmp2)
tmp <- if (file.exists(file.path(tmp, "DESCRIPTION"))) {
tmp2
} else {
list.dirs(tmp2, full.names = TRUE, recursive = FALSE)
}
}
file.copy(
from = list.files(tmp, full.names = TRUE, recursive = FALSE),
to = path,
Expand Down
Loading