“Let’s be honest – all of your R Shiny app logic is contained in a single app.R file, and it’s probably several hundreds of lines long.” 😅 (Not always, but more often than I’d like to admit)
How to Create Your First R Shiny Module, by Dario Radečić on the @appsilon blog
appsilon.com/r-shiny-modules/
#rstats #RShiny @rstats

@smach @appsilon @rstats this is interesting, thanks. Having come to R from standard web frameworks like PHP Laravel and Ruby on Rails, the Shiny apps consisting of two big app.R and ui.R files has always felt uncomfortable.

Follow

@analyst42 @smach @appsilon @rstats You don't have to do that, though. You can have modules, for examples, or source external files.

@nicolaromano @analyst42 @appsilon Yes, I often source external files with functions instead of putting everything in 2 big files. Makes testing easier. Modules would be a lot more re-usable, though.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.