Skip to content

Commit

Permalink
Don't include zip file in description check
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Jun 26, 2019
1 parent 01e3872 commit d9ab0b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/release.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ csr_make_release <- function(all_data, path,

# Check: all the files should be included in the file description list
all_files <- list.files(path, recursive = FALSE)
release_file <- paste0("cosore-", packageVersion("cosore"), ".zip")
all_files <- setdiff(all_files, release_file)
missing <- !all_files %in% names(file_descriptions)
if(any(missing)) {
stop("Missing description for files: ",
Expand All @@ -117,7 +119,6 @@ csr_make_release <- function(all_data, path,

# Almost done! Zip everything up into a single file
message("Zipping...")
release_file <- paste0("cosore-", packageVersion("cosore"), ".zip")
wd <- getwd()
setwd(path)
utils::zip(release_file,
Expand Down

0 comments on commit d9ab0b4

Please sign in to comment.