vdiffr | Visual regression testing and graphical diffing | Testing library
kandi X-RAY | vdiffr Summary
kandi X-RAY | vdiffr Summary
vdiffr is an extension to the package testthat that makes it easy to test for visual regressions. It provides a Shiny app to manage failed tests and visually compare a graphic to its expected output.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vdiffr
vdiffr Key Features
vdiffr Examples and Code Snippets
Community Discussions
Trending Discussions on vdiffr
QUESTION
I am trying to make some GUI for my CRAN package
- some
f
function that locally launches a popup with a few params rendering a few outputs, like launching locally a simple shiny app. - the popup permits to select the parameters easily and then a "validate" button triggers the return of
f
with the selected parameters, like shiny with stopApp
I have already done that with shiny but i think the result is a bit unsatisfying because shiny apps are slow to launch and stop (if there is an object to serialize i guess).
I have seen that some packages, like vdiffr, seem to answer this problem by making a list of the objects to change, thus they only launch shiny once to change everything with some selecter. If possible I'd like to avoid this solution.
So the question is : is there some kind of GUI framework more convenient than Shiny for this (only local, fast launch and fast return) ? Or some fine way to do that, that is light enough (I don't want to make my package to be extraordinary heavy for a small popup) ?
...ANSWER
Answered 2020-Aug-29 at 09:20That really depends on your coding knowledge. My first approach, however, would be to try to improve your shiny app. For that you can use the profvis
package to check why exactly your shiny app is slow. Should you decide to stay with Shiny, there a lot of ways on how to reduce the starting time of Shiny. However, if you should come to the conclusion, that you really want to throw shiny overboard, then you should consider using JavaScript.
- Either you write your complete app in pure JavaScript
- Or you can use JavaScript within Shiny (e.g. r2d3)
Of course there are other ways as @Pork Chop mentioned of using rmarkdown
or normal markdown
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vdiffr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page