R client support for OrderlyWeb
The R package orderly1 has a web interface called OrderlyWeb; this package provides support for orderly1 to interact with OrderlyWeb in order to download reports from a remote server and run them remotely
For end-to-end testing, we need a copy of orderlyweb running. This is most easily set up using the provided configuration (inst/config) and running orderly-web start --pull inst/config before running the tests. The test suite will make changes within the configuration and will rely on the existence of particular reports.
To install orderly-web (the command line tool) use pip3 install orderly-web
A token is also needed to login with github; that can be found in the mrc-ide vault as secret/vimc-robot/orderlyweb-test-token and should be available as the environment variable ORDERLYWEB_TEST_TOKEN (this is available on github actions as an encrypted environment variable).
To stop the server, use orderly-web stop inst/config --volumes --kill
# install.packages("drat")
drat:::add("vimc")
install.packages("orderlyweb")If upgrading, make sure to open a new session for the changes to take effect.