RStudio autocompletion for Shiny input and output objects

125 views
Skip to first unread message

RN

unread,
Jan 18, 2017, 2:22:47 AM1/18/17
to Shiny - Web Framework for R
Is there a way / trick to get RStudio to autocomplete on the shiny objects like input$foo or output$bar like the way it will autocomplete "regular" objects like fooobject$barcolumn?

I use RStudio a lot and as the size of the shiny application becomes larger this would help me during coding a lot to avoid silly typos etc. 

Any tips? Ideas?

Dean Attali

unread,
Jan 20, 2017, 9:54:53 AM1/20/17
to Shiny - Web Framework for R
If you develop your shiny app using the two-file structure (server.R and ui.R) as opposed to just using app.R, then newer versions of RStudio *should* autocomplete inputs and outputs

RN

unread,
Jan 20, 2017, 1:03:59 PM1/20/17
to Shiny - Web Framework for R
Thanks Dean. I will try that. So far I had a single file. 

Any idea why the autocomplete gets suppressed in a single file scenario? Just a bug or some other reason?
Reply all
Reply to author
Forward
0 new messages