Skip to content

Commit

Permalink
fix: add missing argument open to usethis_use_readme_rmd()
Browse files Browse the repository at this point in the history
also add missing space for before {
  • Loading branch information
ilyaZar authored and ColinFay committed May 24, 2023
1 parent a50aa88 commit f556ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/use_readme.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use_readme_rmd <- function(
readme_path
)

usethis_use_readme_rmd()
usethis_use_readme_rmd(open = open)

readme_tmpl <- generate_readme_tmpl(
pkg_name = pkg_name
Expand All @@ -50,7 +50,7 @@ use_readme_rmd <- function(
check_overwrite <- function(overwrite, tmp_pth) {
# If the user wants to overwrite, we remove the file
# Otherwise, error if the file already exists
if (file.exists(tmp_pth)){
if (file.exists(tmp_pth)) {
if (isTRUE(overwrite)) {
unlink(tmp_pth, TRUE, TRUE)
} else {
Expand Down

0 comments on commit f556ba2

Please sign in to comment.