Skip to content

Commit

Permalink
create_library_r() is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
seokhoonj committed May 28, 2024
1 parent 5c0929b commit 7d61548
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/file.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
#'
#' @export
create_library_r <- function(path = "library.R") {
ans <- TRUE
if (file.exists(path)) {
ans <- usethis::ui_yeah("Overwrite pre-existing file {usethis::ui_path(path)}?")
} else {
ans <- FALSE
}
if (ans) {
file.create(path)
Expand Down

0 comments on commit 7d61548

Please sign in to comment.