implement non-interactive flow for create_if_needed() (#1230)
implement non-interactive flow for create_if_needed()
Simplify create_if_needed() logic for #1154
- Remove warn_if_exists parameter (not needed for basic behavior)
- Simplify overwrite parameter (only for future extensibility)
- If file/dir exists and overwrite=FALSE: return TRUE, do nothing
- If doesn’t exist and interactive: ask user for permission
- If doesn’t exist and non-interactive: create silently with message()
- Update tests to cover all three paths
This matches the intended behavior: non-interactive mode creates files instead of failing, but still respects existing files.
Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com
- chore: version bump & news update
Co-authored-by: Mauricio Vargas Sepulveda mavargas11@uc.cl Co-authored-by: Claude Haiku 4.5 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
{golem}
Production-grade
{shiny}applications, from creation to deployment.{golem}is an opinionated framework that sets the standard for building production-grade{shiny}applications. It provides a structured environment that enforces best practices, fosters maintainability, and ensures your applications are reliable, and ready for deployment in real-world environments.With
{golem}, developers can focus on creating high-quality, robust{shiny}apps with confidence, knowing that the framework guides them through every step of the development process.Installation
Get Started
Create a new app with the project template from RStudio:
Or use the
golem::create_golem()function:See your app in action by running
golem::run_dev()function.Then, follow the scripts at:
dev/01_start.Rto configure your project at launchdev/02_dev.Rfor day to day developmentdev/03_deploy.Rto build the deployment enabler for your appResources
The
{golem}package is part of the{golemverse}, a series of tools for building production{shiny}apps.A list of various
{golem}related resources (tutorials, video, blog post,…) can be found here, along with blogposts, and links to other packages of thegolemverse.Dev part
This
READMEhas been compiled on theHere are the test & coverage results:
CoC
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Note for the contributors
Please style the files according to
grkstyle::grk_style_transformer()