-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ super-linter.log | |
cache/ | ||
.lintr | ||
.githooks | ||
^vignettes/articles$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
# module2app | ||
# niffler | ||
|
||
Development helper for working with shiny modules | ||
> "Long-snouted, burrowing creatures native to Britain with a penchant for anything shiny." | ||
> -— [Pottermore](https://harrypotter.fandom.com/wiki/Niffler) | ||
## Overview | ||
|
||
niffler is a loose collection of helpers for your shiny development. | ||
It is *not* a full-blown framework like [golem](https://thinkr-open.github.io/golem/), | ||
but a lightweight time- and line-saver. | ||
|
||
It can help with: | ||
|
||
- modules | ||
- testing | ||
- ... and more | ||
|
||
|
||
## Installation | ||
|
||
```r | ||
# install.packages("pak") | ||
pak::pak("dataheld/niffler") | ||
``` | ||
|
||
Notice that niffler is a *development*-time dependency; | ||
your shiny app should not need it to work, | ||
and it thus *might not need it in your `DESCRIPTION`*. | ||
|
||
If you use it for tests, you can include it as a `Suggests`. | ||
|
||
If you don't need it for tests, | ||
but want to otherwise record that you used it for development, | ||
consider an [extra dependency](https://pak.r-lib.org/reference/package-dependency-types.html#extra-dependencies): | ||
|
||
```DESCRIPTION | ||
Config/Needs/website: dataheld/niffler | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.html | ||
*.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: "niffler" | ||
--- | ||
|
||
|
||
```{r, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>" | ||
) | ||
``` | ||
|
||
```{r setup} | ||
library(niffler) | ||
``` | ||
|
||
|
||
# Testbed for Modules | ||
|
||
## Reactive and non-Reactive Inputs | ||
|
||
Notice that it is the responsibility of your module server to | ||
assert whichever kinds of inputs it expects. | ||
Consider these [recommendations on server inputs](https://mastering-shiny.org/scaling-modules.html#server-inputs) | ||
on how to do this. |