Kaynağa Gözat

# This is a combination of 3 commits.

# This is the 1st commit message:

Create files we need for this example

# The commit message #2 will be skipped:

# (meta add github_sha_link())

# The commit message #3 will be skipped:

# (meta add project description)
shiny-input
Garrick Aden-Buie 6 yıl önce
ebeveyn
işleme
255c62e7b4
3 değiştirilmiş dosya ile 35 ekleme ve 0 silme
  1. +0
    -0
      inst/shiny-input-app/app.R
  2. +35
    -0
      inst/shiny-input-app/dev-shiny-input.Rmd
  3. +0
    -0
      inst/shiny-input-app/typing.js

+ 0
- 0
inst/shiny-input-app/app.R Dosyayı Görüntüle


+ 35
- 0
inst/shiny-input-app/dev-shiny-input.Rmd Dosyayı Görüntüle

@@ -0,0 +1,35 @@
---
output: github_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(eval = FALSE)

github_sha_link <- function(sha) {
glue::glue("![{sha}](https://github.com/gadenbuie/js4shiny-frappeCharts/commit/{sha})")
}
```


# Building a Shiny Input

In this project,
we're going to create a typing speed app
using a custom Shiny input.
The app will give users typing prompts,
monitor their typing speed,
and use a Frappe Chart line chart
to show their speed over time as they type.

## Setup a folder for our app inside the frappeCharts package

`r github_sha_link("63174e128861b0dbc9d77c2e35ad88e1853aa0be")`

Create the directory `inst/shiny-input-app` and add `app.R` and `typing.js`.

```{r}
usethis::use_directory("inst/shiny-input-app")
file.create("inst/shiny-input-app/app.R")
file.create("inst/shiny-input-app/typing.js")
```


+ 0
- 0
inst/shiny-input-app/typing.js Dosyayı Görüntüle


Yükleniyor…
İptal
Kaydet