barbone, 6 months ago Reminder (to myself): #RStats #shiny reactive objects can return functions, which use other reactive object inside of them
Reminder (to myself): #RStats #shiny reactive objects can return functions, which use other reactive object inside of them
grrrck, 6 months ago @barbone Yes! @jonthegeek and I were just talking about this last week. It's super helpful! https://fosstodon.org/@grrrck/111386156050820277
@barbone Yes! @jonthegeek and I were just talking about this last week. It's super helpful!
https://fosstodon.org/@grrrck/111386156050820277
jonthegeek, 6 months ago @grrrck @barbone I hadn't fully wrapped my mind around this particular option! No matter how much I dig into shiny, there's always something left that I hadn't thought of 🙃
@grrrck @barbone I hadn't fully wrapped my mind around this particular option! No matter how much I dig into shiny, there's always something left that I hadn't thought of 🙃
barbone, 6 months ago @grrrck @jonthegeek It's good enough to look past the slightly weird syntax: my_reactive()(x = 1)
@grrrck @jonthegeek It's good enough to look past the slightly weird syntax: my_reactive()(x = 1)
jonthegeek, 6 months ago @barbone @grrrck oh ha that's right, I HAVE done this! The syntax triggered some old memories 🤣
@barbone @grrrck oh ha that's right, I HAVE done this! The syntax triggered some old memories 🤣
grrrck, 6 months ago @jonthegeek @barbone ooh try this: # inside a module my_internal_reactive <- reactive(0) return( list( update_internal = function(x) { my_internal_reactive(x) } ) )
@jonthegeek @barbone ooh try this:
# inside a module my_internal_reactive <- reactive(0) return( list( update_internal = function(x) { my_internal_reactive(x) } ) )
Add comment