Coder Social home page Coder Social logo

shinyevents's People

Contributors

skranz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shinyevents's Issues

Proposal: if.handler.exists = "updateArgs"?

Hi,
I found that addEventHandlerToApp() may take a noticeable time if executed in a loop and process already existing ids.
My usecase is dynamic creation of 10 buttons. When you press any of them it shall print out the word assigned to button. Then I must recreate all 10 buttons with new random words.
I found that although initial creation of 10 buttons is performed quite fast their recreation takes much more time. And the bottleneck is in addEventHandlerToApp(). Both if.handler.exists == "add" and `if.handler.exists == "replace" behave this way.

What would be great to have is a way to replace s_argsof already existing event handler without reevaluation of its code. This could be done with a new if.handler.exists value or with a new method which allows to get environment associated with handler with specified id (if any of these are technically possible - I was able to detect if handler for id already exists but couldn't reach its environment)
Currently I bypassed this problem by passing a link to the global environment and index of a word in a global list in a callback function.

shinyEvents in client\server shiny app

Hi,
I wonder if it could be used for client\server apps. I mean ui.R\server.R approach. Currently all samples are in one R file and seems to share environment. I've tried to do something like:

ui.R
-----
library(shinyEvents)

app = eventsApp()
app$verbose = T
app$ui = fluidPage(
 titlePanel("Word completion test app"),
  fluidRow(actionButton("dynBtn0", "starts[i]")) 
)

server.R
-----
shinyServer(function(input, output, session) {
buttonHandler("dynBtn0", function(session, value, ...) {warning("df");})   
})

And run it with RStudio's run button.

buttonHandler is invoked but when you press a button - nothing happens.
I suspect this is because getApp()$session.env is NULL in addEventHandlerToApp()

Could shinyEvents be used in that way? If so, could you give a short sample?

Can we add an event listener to a particular layer of a ggplot2

Hi,

I am interested in making my ggplot2 interactive and was wondering if we could leverage your package to add event listeners to a particular layer within a ggplot2.

For example, I want to add an event listener to the geoim_point layer in the example below

ggplot() +
geom_point(mapping = aes(y = hwy, x = cty), data = mpg) +
geom_smooth(data = mpg, mapping = aes(cty, hwy))

Regards

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.