Rhino 1.9.0 Update On CRAN: New Formatting Tools And Cleaner {Bslib} Integration

[This article was first published on Tag: r - Appsilon | Enterprise R Shiny Dashboards, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

We’re excited to announce the release of Rhino 1.9, bringing with it some powerful new features for developers. This update focuses on enhancing your coding experience with new formatting tools for JavaScript and Sass, as well as cleaner integration of {bslib} and custom Sass for ultimate flexibility when styling your application

Not sure what library is right for you between Rhino, Golem and Leprechaun? We did the comparison in this blog post.

New Formatting Tools

Rhino is committed to providing you with state-of-the-art tools for working with JavaScript and CSS, the backbone technologies of the web. Since its early versions, Rhino has offered linting tools powered by eslint and stylelint. The lint_js() and lint_sass() functions could also be used to format the code with the fix = TRUE flag.

The tooling landscape has shifted however, with linters now focusing primarily on detecting potentially problematic or buggy code. Formatting is now typically delegated to separate tools and prettier has emerged as the gold standard for this task.

Rhino 1.9 introduces a pair of new functions for formatting JavaScript and Sass powered by prettier:


You can now automatically format your code using state-of-the-art tools:

These functions ensure that your code is consistently formatted, making it easier to read and maintain.

Styling With {Bslib}

The {bslib} R package offers a UI toolkit based on Bootstrap. Shiny uses it under the hood for its default appearance, but it’s also possible to use {bslib} directly to access additional UI components, theming, and more.

Rhino comes with built-in support for writing custom Sass code giving you complete control over the appearance of your application. While you could use both {bslib} and custom Sass in Rhino before, it was somewhat cumbersome.

To make the integration cleaner, Rhino 1.9 introduces a new configuration option for Sass in the rhino.yml file:

sass: custom

With some simple setup, you can elegantly combine {bslib} and custom Sass code to create unique and flexible styles for your projects.

For detailed instructions, refer to our guide on How-to: Use bslib with Rhino.

How To Install The Latest Version Of Rhino

Try out the new features today! You can grab the latest version from CRAN by running:


To migrate your existing Rhino project, check out the Rhino 1.9 Migration Guide.

Explore The Rhinoverse

Rhino can be a solid foundation for your Shiny application, but it doesn’t end there. Rhino is the centerpiece of a larger ecosystem – Rhinoverse, a family of open-source R packages created by Appsilon to address the needs of modern web development.

Make sure to check out the other members of the family on rhinoverse.dev!

Summing Up Rhino 1.9.0 Update

Rhino 1.9 represents our ongoing commitment to providing developers with powerful, flexible tools for creating exceptional Shiny applications. We’re eager to hear your feedback on these new features. Don’t hesitate to reach out with questions, suggestions, or to share your experiences with Rhino 1.9 in our Shiny community on Slack.

We share the latest updates on R/Shiny and data science in our newsletter. Sign up for our newsletter today. 

The post appeared first on appsilon.com/blog/.

To leave a comment for the author, please follow the link and comment on their blog: Tag: r - Appsilon | Enterprise R Shiny Dashboards.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)