Dynamic input and output

524 views
Skip to first unread message

Winston Chang

unread,
Oct 20, 2013, 2:49:46 PM10/20/13
to shiny-...@googlegroups.com
Hi everyone -

Someone recently asked me about creating a dynamic number of inputs in Shiny, so I wrote an example and I thought I'd share. This one actually has a dynamic number of inputs and outputs:

Source:
https://github.com/wch/testapp/tree/master/dynamic_in_out

-Winston

Stéphane Laurent

unread,
Oct 20, 2013, 4:56:08 PM10/20/13
to shiny-...@googlegroups.com
Thanks. What is the local() function please ?

Ramnath Vaidyanathan

unread,
Oct 20, 2013, 7:18:13 PM10/20/13
to shiny-...@googlegroups.com
From R Help

? local

local evaluates an expression in a local environment. It is equivalent to evalq except that its default argument creates a new, empty environment. This is useful to create anonymous recursive functions and as a kind of limited namespace feature since variables defined in the environment are not visible from the outside.

Stéphane Laurent

unread,
Oct 21, 2013, 2:20:48 AM10/21/13
to shiny-...@googlegroups.com
Ah ok Ramnath, I thought this was a Shiny specific function. 

@Winston, Let me give a link here to a similar problem: generating a dynamic number of tabpanels
Reply all
Reply to author
Forward
0 new messages