Comments (2)
@xni7 I am tempted to do that temporary but that add_module function should definitely be added to the {golem} package when we reach CRAN.
from tidymodules.
As someone who's tried to use golem before I'd recommend not making it mandatory. I could never get it to work even after pulling my hair out for a week even though there was nothing wrong with the app itself. Imho I can't see the use of it, if you're deploying an app at scale odds are your company already has an internal SVN or the like.
That aside tidymodules looks like exactly what I'd been hoping for. I've tried to brute force shiny into heavily interactive CRUD work and it's a nightmare, even if you modularize it still turns into a hairball with tons of ctrl+f between the UI and server sections.
If I understand things right then in the most basic use case all someone needs to define are: Class name, input port, output port, UI element, and server element. And of those the UI and Server elements are pretty much the code straight from your existing app.r
only with the addition of updating the output port in the server element, right?
So it sounds like you could make a wrapper for building very basic modules that works basically like Shiny itself does:
makeTidyModule(
input=list(
name = "seed",
description = "random number seed",
sample = 123
),
output= list(
name = "number",
description = "Random number",
sample = 123
),
ui = function(){},
server=function(){}
)
Essentially an souped up version of glue
to let people fill in the basic vital sections without being scared by the extra syntax of defining a class.
from tidymodules.
Related Issues (20)
- Add travis badge in Readme.md
- test
- Add testthat !!!
- manage session with shiny::getDefaultReactiveDomain()
- Port inheritance with deeply nested modules HOT 1
- Improve overall visNetwork layout in store HOT 1
- Ability to collapsed/uncollapse nodes in store visNetwork
- Add flags to modules so as to control their collapse state in store
- callModules() does not work with nested modules
- Automate the use of self$getShinyInput()/self$getShinyOutput()
- drag&drop infrastructure
- Side bar with collection of modules to drop into a central canvas
- UI : Edge creation
- Deploy to shinyapps.io & add link to submission page
- Improve Module representation in vizNetwork HOT 1
- Object 'rLog' not found HOT 6
- Unable to install {tidymodules} from the repo HOT 1
- Is tidymodules still under active development? HOT 2
- Example 4 does not work HOT 1
- Appears incompatible with 64 bit integers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidymodules.