Skip to content

Commit

Permalink
get current directory to ensure config copied in coorrect dir fixes J…
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Mar 14, 2020
1 parent eb510cd commit 773ec87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#' @export
create_config <- function(){
file <- system.file("coronavirus.yml", package = "coronavirus")
directory <- normalizePath(".")
destination <- paste0(directory, "/", config_file)

created <- file.copy(file, to = config_file)
if(created)
cli::cli_alert_success("_coronavirus.yml file copied: fill it in")
Expand Down

0 comments on commit 773ec87

Please sign in to comment.