Add a demo shiny app in the doc

Open
#429 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
documentation

Research direction

Open the creating-your-own-widgets section at https://www.htmlwidgets.org/develop_intro.html#creating-your-own-widgets and review the surrounding examples. Add the provided R Shiny demo for mywidget, then verify that the documentation renders correctly and the example clearly shows a working shinyApp.

Written by the indexing model from the issue text.

Description

It would be helpful to have a demo shiny app at: https://www.htmlwidgets.org/develop_intro.html#creating-your-own-widgets

library(shiny)
library(mywidget)
ui <- tagList(
    mywidgetOutput("x")
 )

server <- function(
  input,
  output,
  session
) {
  output$x <- renderMywidget({ 
    	mywidget("hello")
    })
}

shinyApp(ui, server)
Dominant language
R
Stars
801
Forks
202
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ramnathv/htmlwidgets

All issues in ramnathv/htmlwidgets

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.