You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
780B

  1. ---
  2. output: github_document
  3. ---
  4. ```{r setup, include=FALSE}
  5. knitr::opts_chunk$set(eval = FALSE)
  6. github_sha_link <- function(sha) {
  7. glue::glue("[{sha}](https://github.com/gadenbuie/js4shiny-frappeCharts/commit/{sha})")
  8. }
  9. ```
  10. # Building a Shiny Input
  11. In this project,
  12. we're going to create a typing speed app
  13. using a custom Shiny input.
  14. The app will give users typing prompts,
  15. monitor their typing speed,
  16. and use a Frappe Chart line chart
  17. to show their speed over time as they type.
  18. ## Setup a folder for our app inside the frappeCharts package
  19. Create the directory `inst/shiny-input-app` and add `app.R` and `typing.js`.
  20. ```{r}
  21. usethis::use_directory("inst/shiny-input-app")
  22. file.create("inst/shiny-input-app/app.R")
  23. file.create("inst/shiny-input-app/typing.js")
  24. ```