Skip to content

Commit

Permalink
Merge pull request #191 from ropenscilabs/closezip
Browse files Browse the repository at this point in the history
Restore missing close brackets.
  • Loading branch information
elinw authored Oct 7, 2019
2 parents ed35f6c + 1b3ae07 commit 45bf2be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions inst/shiny/qcoder/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,16 @@ if (interactive()) {
qcoder::add_code(codes_df, input$new_code, input$new_code_desc,
codes_df_path)
})
observeEvent(input$zipfile,
zip::zipr(zipfile = paste0(dirname(project_path), "/",
observeEvent(input$zipfile, {
zip::zipr(zipfile = paste0(dirname(project_path), "/",
"QCoderProject-", basename(project_path), "-",
Sys.Date(),".zip"), files = project_path,
recurse = TRUE))
message(paste0("Zip file created: ", paste0(dirname(project_path), "/",
"QCoderProject-",
recurse = TRUE)
message(paste0("Zip file created: ", paste0(dirname(project_path), "/",
"QCoderProject-",
basename(project_path), "-",
Sys.Date(),".zip")))
})
} # close server

# Run the application
Expand Down

0 comments on commit 45bf2be

Please sign in to comment.