Skip to content

Commit

Permalink
update run_example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrace committed Dec 30, 2024
1 parent 2f50580 commit c8d3016
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
7 changes: 3 additions & 4 deletions R/run_example.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#' Example Function
#'
#' This function runs a shiny example showcasing different parts of the package.
#' Run examples
#'
#' This function runs an example R Shiny app showcasing different parts of the package.
#' Code for the app can be found in the inst/example_app folder in the source code.
#'
#' @return a shiny app with examples in
#' @return runs an R Shiny app with examples in
#' @keywords example
#' @export
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This package is also released with a [Contributor Code of Conduct](.github/CODE_

### Available components

The package contains an example dashboard you can run yourself, showcasing available components
The package contains an example app you can run yourself, showcasing available components. The code for the example app is in the `inst/example_app/` folder. Though you can easily run the app from the console using:

```r
shinyGovstyle::run_example()
Expand Down
2 changes: 1 addition & 1 deletion inst/example_app/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ shiny::shinyApp(

shiny::tags$br(),
shiny::markdown(
"If running locally, run ```View(run_example)``` in console to see the code for this app. Otherwise, you can see the <a href='https://github.com/dfe-analytical-services/shinyGovstyle/blob/master/R/run_example.R/'>latest version of the code on GitHub</a>."
"You can see the latest version of the <a href='https://github.com/dfe-analytical-services/shinyGovstyle/blob/master/R/run_example.R/'>source code for this app on GitHub</a>."
),

# Set up a nav panel so everything not on single page
Expand Down
7 changes: 4 additions & 3 deletions man/run_example.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8d3016

Please sign in to comment.