Skip to content

Commit 3e11e48

Browse files
authored
fix: allow to build readme in 01_start
tags: fix, doc Why? - I need to be able to commit right after running the complete "dev/01_dev.R" How? - To commit, I need the Readme.md file to be created, after I created the Readme.Rmd file. - devtools::build_readme() allows to install the package temporarily with its last version to be able to knit the Readme.Rmd in the last good conditions
1 parent 5eb61fb commit 3e11e48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/shinyexample/dev/01_start.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ golem::install_dev_deps()
3939
## See ?usethis for more information
4040
usethis::use_mit_license("Golem User") # You can set another license here
4141
usethis::use_readme_rmd(open = FALSE)
42+
devtools::build_readme()
4243
# Note that `contact` is required since usethis version 2.1.5
4344
# If your {usethis} version is older, you can remove that param
4445
usethis::use_code_of_conduct(contact = "Golem User")
@@ -64,4 +65,4 @@ golem::use_utils_server(with_test = TRUE)
6465
# You're now set! ----
6566

6667
# go to dev/02_dev.R
67-
rstudioapi::navigateToFile("dev/02_dev.R")
68+
rstudioapi::navigateToFile("dev/02_dev.R")

0 commit comments

Comments
 (0)