Last active
February 23, 2016 23:23
-
-
Save byzheng/4eb8d48c8b258971329c to your computer and use it in GitHub Desktop.
A shiny app to add a hyperlink and send data back to server.
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
library(shiny) | |
shinyServer( function(input, output, session) { | |
output$results <- renderPrint({ | |
input$mydata | |
}) | |
}) |
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
library(shiny) | |
shinyUI( bootstrapPage( | |
# a div named mydiv | |
tags$a( | |
id="mydiv", | |
href="#", 'click me', | |
onclick = 'Shiny.onInputChange("mydata", Math.random());'), | |
# an element for unformatted text | |
verbatimTextOutput("results") | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment