{"version":"1.0","type":"rich","title":"How to use R like Python","description":"This example demonstrates how to write modular, maintainable R scripts using the `box` package instead of `source()` or `library()`. It shows a main script with pure functions and a CLI entry point, loaded alongside a utility file and an unconventionally named module. The code uses `box::use` for dependency management, `argparse` for command-line parsing, `arrow` for Parquet I/O, and `testthat` for inline validation. The workflow emphasizes avoiding `setwd()` and keeping scripts testable and reusable across projects.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-2712fa9c4ec1668d661758eea8f55aed?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}