GithubHelp home page GithubHelp logo

admariner / shiny.router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appsilon/shiny.router

0.0 0.0 0.0 4.91 MB

A minimalistic router for your Shiny apps.

Home Page: http://appsilon.github.io/shiny.router

License: Other

R 85.26% JavaScript 7.67% Shell 2.83% CSS 4.23%

shiny.router's Introduction

shiny.router shiny.router logo

A minimalistic router for your Shiny apps.

R-CMD-check codecov cranlogs total

Now it's possible to recreate a state of your app, by providing a specific URL, like:

make_router(
  route("<your_app_url>/main",  mainPageShinyUI),
  route("<your_app_url>/other", otherPageShinyUI)
)

How to install?

It's possible to install this library through CRAN

install.packages("shiny.router")

The most recent version you can get from this repo using remotes.

remotes::install_github("Appsilon/shiny.router")

How to use it?

Basic usage:

library(shiny)
library(shiny.router)

root_page <- div(h2("Root page"))
other_page <- div(h3("Other page"))

router <- make_router(
  route("/", root_page),
  route("other", other_page)
)

ui <- fluidPage(
  title = "Router demo",
  router$ui
)

server <- function(input, output, session) {
  router$server(input, output, session)
}

shinyApp(ui, server)

Check the tutorial for more details on how to start using shiny.router or read the article on Appsilon's blog.

Examples

An application that showcases the shiny.router features can be found here:

It was built using two other Appsilon Open Source packages:

  • rhino - an R package designed to help building high quality, enterprise-grade Shiny applications at speed.
  • shiny.fluent - Microsoft's Fluent UI for Shiny apps.

You can also visit examples directory for some complete samples.

How to contribute?

If you want to contribute to this project please submit a regular PR, once you're done with new feature or bug fix.

Reporting a bug is also helpful - please use GitHub issues and describe your problem as detailed as possible.

Appsilon

Appsilon is a Posit (formerly RStudio) Full Service Certified Partner. Learn more at appsilon.com.

Get in touch [email protected]

Check our Open Source tools.

We are hiring!

shiny.router's People

Contributors

agwells avatar cosi1 avatar cpsievert avatar damianrodziewicz avatar dokato avatar galachad avatar jakubnowicki avatar krystian8207 avatar krzysztofwrobel avatar przytu1 avatar rstammer avatar scizmeli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.