Barret Schloerke of RStudio this week offered Shiny developers details of the R package, which promises to improve testing for R Shiny applications. shinytest2 version 0.1.0, of CRAN from Wednesday allows automated testing of the interactivity of the web application Shiny. This testing is done through lamenessChrome headless browser.

During a presentation at the Shiny conference sponsored by Appsilon consultants, Schloerke showed the package to online participants record_test() function. As the name suggests, this feature records actions taken in the test browser and converts those actions into code. This code can then automatically restart the user’s initial manual activities and check the results. Under the hood shinytest2 takes some snapshots of the status of the application and uses test this package for a single test to store different values ​​over time. When the test is restarted, the new values ​​can be compared with the earlier ones.

For more information on shinytest2, see package website.

Also this week, the host of the Appsilon conference revealed theirs Rhino frame for building Shiny applications, which the company advertises as allowing the creation of applications “as a full-stack software engineer”, according to website for packages. “Apply software engineering best practices, modulate your code, test it well, make the UI beautiful and think about accepting users from the start. Rhino is a confident framework with a focus on software engineering practices and development tools.

Rhino includes built-in support for modular testing, end-to-end testing with Cypress, linting, GitHub Action CI, dependency management and more.

Rhino is a new alternative to the current popular framework golemwhich was created by the consulting company ThinkR R. One of the main differences between the two is that golem requires the Shiny application to be created as an R package, while Rhino does not. Appsilon officials said that for some of their work with clients, they need the option to create an application that is not structured as a package, as this offers more flexibility in terms of file structure. There was a lively discussion in the conference chat about the merits of requiring Shiny applications to be R packets, with some liking the portability and well-known structure of the packet, while others preferred the concept of more choice.

Copyright © 2022 IDG Communications, Inc.

Previous articleDisney Plus: Everything to Know
Next articleTop 30 JIRA interview questions to help you complete your interview