Skip to content

Commit

Permalink
app name in readme (#94)
Browse files Browse the repository at this point in the history
* app name in readme

* increment version
  • Loading branch information
alan-y authored Nov 5, 2024
1 parent 14c27d7 commit c2abccd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: phstemplates
Title: PHS R Templates
Version: 1.2.1
Version: 1.2.2
Authors@R: c(
person("Public Health Scotland", , , "[email protected]", role = "cph"),
person("Alan", "Yeung", , "[email protected]", role = c("aut", "cre"),
Expand Down
17 changes: 11 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# phstemplates 1.2.2

* The `compile_report()` and `phs_report_docx()` no longer need to search for the word 'Introduction' to add in the table of contents to PHS report templates.
* The PHS shiny app template now includes the name of the app entered by the user at the top of the readme.

# phstemplates 1.2.1

* Updated accredited official statistics templates to include the accredited badge.
Expand All @@ -17,18 +22,18 @@

# phstemplates 1.1.0

* Added PHS shiny app template, accessible through the RStudio menus or through phsshinyapp().
* Added PHS shiny app template, accessible through the RStudio menus or through `phsshinyapp()`.

# phstemplates 1.0.1

* Added add_gitignore() function which allows the user to add a PHS style .gitignore file to a given directory
* Added `add_gitignore()` function which allows the user to add a PHS style `.gitignore` file to a given directory
* RStudio addin for `add_gitignore()` so users can add `.gitignore` directly from RStudio.
* Minor updates to template text and fixed README link

# phstemplates 1.0.0

* Added the phs_report_docx RMarkdown document type.
* Updated the PHS official and national stats report templates to use the phs_report_docx RMarkdown document type.
* Added the `phs_report_docx` RMarkdown document type.
* Updated the PHS official and national stats report templates to use the `phs_report_docx` RMarkdown document type.
* Removed the ISD national stats summary and report templates.

# phstemplates 0.9.6
Expand All @@ -37,7 +42,7 @@

# phstemplates 0.9.5

* Added compile_report() function to handle creating reports.
* Added `compile_report()` function to handle creating reports.
* Added a code chunk at the top of report templates to help set the working directory.

# phstemplates 0.9.4
Expand Down Expand Up @@ -70,7 +75,7 @@

# phstemplates 0.8.2

* Renamed project function to phsproject() in preparation for package name change.
* Renamed project function to `phsproject()` in preparation for package name change.
* Better error checking of filepaths for the RStudio 1.2 HPS report template.

# phstemplates 0.8.1
Expand Down
1 change: 1 addition & 0 deletions R/phsshinyapp.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ phsshinyapp <- function(path, author = Sys.info()[["user"]], app_name = "WRITE A

# Getting shiny files from inst/
readme <- readLines(system.file(package = "phstemplates", "text", "shiny", "README.md"))
readme <- gsub("WRITE APP NAME HERE", app_name, readme)
setup_code <- readLines(system.file(package = "phstemplates", "text", "shiny", "setup.R"))
css_code <- readLines(system.file(package = "phstemplates", "text", "shiny", "shiny_css.css"))
css_code_phs <- readLines(system.file(package = "phstemplates", "text", "phs_style.css"))
Expand Down

0 comments on commit c2abccd

Please sign in to comment.