I am unit testing a package using expect_doppelganger, but doing so from a Docker container on a remote server.
Short story, something failed and testthat suggests running testthat::snapshot_review('facet/') to review changes. Alas, it doesn't quite work as expected:
Starting Shiny app for snapshot review
ℹ Use Ctrl + C to quit
/usr/bin/xdg-open: 882: www-browser: not found
/usr/bin/xdg-open: 882: links2: not found
/usr/bin/xdg-open: 882: elinks: not found
/usr/bin/xdg-open: 882: links: not found
/usr/bin/xdg-open: 882: lynx: not found
/usr/bin/xdg-open: 882: w3m: not found
xdg-open: no method available for opening 'http://127.0.0.1:6299'
Mainly, the host and port cannot be specified from snapshot_review. That would be nice.
I suggest adding an ellipsis to snapshot_review, which gets passed on to the non-exported method review_app. Here, the arguments in ... are used in either shiny::runApp, as such,
I am unit testing a package using
expect_doppelganger
, but doing so from a Docker container on a remote server.Short story, something failed and testthat suggests running
testthat::snapshot_review('facet/')
to review changes. Alas, it doesn't quite work as expected:Mainly, the host and port cannot be specified from
snapshot_review
. That would be nice.I suggest adding an ellipsis to
snapshot_review
, which gets passed on to the non-exported methodreview_app
. Here, the arguments in...
are used in eithershiny::runApp
, as such,or in
shiny::shinyApp
, as such:Or even let
shapshot_review
accept an explicit argument forshinyApp
.Workaround for now is to overload the two functions locally: