-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from ecohealthalliance/feature/zip_dropbox_files
Feature/zip dropbox files
- Loading branch information
Showing
9 changed files
with
109 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#' Get make a zip file path | ||
#' | ||
#' Take a file path, remove the extension, replace the extension | ||
#' with .zip | ||
#' | ||
#' @param file_path character. | ||
#' | ||
#' @return character. String where extension is replaced by zip | ||
#' @export | ||
#' | ||
#' @examples | ||
#' | ||
#' file_path <- "hello.csv" | ||
#' make_zip_path(file_path) | ||
#' | ||
#' file_path_with_dir <- "foo/bar/hello.csv" | ||
#' make_zip_path(file_path_with_dir) | ||
#' | ||
make_zip_path <- function(file_path){ | ||
file_path_no_ext <- fs::path_ext_remove(file_path) | ||
zip_path <- sprintf("%s.zip",file_path_no_ext) | ||
return(zip_path) | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.