-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-reload functionality when there are changes in R, JS, CSS/SCSS files #552
Comments
Perhaps these snippets would do:
|
Thank you so much @aswansyahputra for your proposal! I love that you included a concrete, working idea for implementation. 💯 🎉 It came just at the right time, as we are looking into making shiny.autoreload work with Rhino. It seems to have some benefits compared to restarting the whole R with
But I do love the idea of using |
Thank you for your kind words, @kamilzyla! I'm so delighted to hear your positive feedback. My team and I are eager to use this feature in the near future, and I'm confident that other R users would also appreciate its addition in |
Motivation
I feel it quite cumbersome to have to manually restart the app when developing an app. Could be there any simple way?
Feature description
Perhaps a
rhino::dev()
function to run the app and watch for changes in R, JS, and SCSS/CSS files. Restart the app automatically to reflect any changes.Implementation ideas
Utilize
nodemon
andnpm-run-all
nodejs package to achieve this goal. Lately I put thispackage.json
snippet in app root directory:Then run
npm install
once. Now I only need to runnpm run install
in terminal for my{rhino}
-app development.I think it's better to optionally put this config into
.rhino
directory instead and wrap thenpm run dev
into an R function to be accessible from R console.Impact
This feature will undoubtedly revolutionize the daily work of Shiny developers.
Comments
No response
The text was updated successfully, but these errors were encountered: