Skip to content

Commit

Permalink
fix paths in downloadData and checksums (#205)
Browse files Browse the repository at this point in the history
with 92e9b76
  • Loading branch information
achubaty committed Oct 21, 2015
1 parent 92e9b76 commit f88bb69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/module-repository.R
Expand Up @@ -167,7 +167,7 @@ setMethod(
if (length(urls[-ids])) {
setwd(path); on.exit(setwd(cwd))
files <- lapply(urls[-ids], function(x) {
download(x, destfile = basename(x), quiet = TRUE)
download(x, destfile = file.path(path, module, "data", basename(x)), quiet = TRUE)
basename(x)
})
} else {
Expand Down Expand Up @@ -220,7 +220,7 @@ setMethod(
"checksums",
signature = c(module = "character", path = "character", write = "logical"),
definition = function(module, path, write) {
path <- checkPath(path, create = FALSE) %>% file.path(., "data")
path <- checkPath(path, create = FALSE) %>% file.path(., module, "data")
stopifnot(file.exists(file.path(path, "CHECKSUMS.txt")))

files <- list.files(path, full.names = TRUE) %>%
Expand Down

0 comments on commit f88bb69

Please sign in to comment.