Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jienagu/faq

This is package is to create a FAQ (Frequently Asked Questions) page for Shiny application with desired data.frame.
https://github.com/jienagu/faq

Last synced: about 1 month ago
JSON representation

This is package is to create a FAQ (Frequently Asked Questions) page for Shiny application with desired data.frame.

Awesome Lists containing this project

README

        

---
output: github_document
always_allow_html: true
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# faq

This is package is to create a FAQ (Frequently Asked Questions) page for Shiny application with desired data.frame.

## Installation

``` r
install.packages("faq")
```

## Introduction

Simply create a data frame with `question` column and `answer` column. Then put this data frame into `faq()` function, we will get a nice FAQ page.

```{r ex1}
library(faq)
df <- data.frame(
question = c("Question1", "Question2", "Question3"),
answer = c("answer for question1",
"question2 answer",
"answer3")
)
faq::faq(data = df, elementId = "faq", faqtitle = "Frequently Asked Questions")
```