I recently demonstrated how it was possible to automate the deployment of R models to Azure Machine Learning through Azure DevOps. Of course, this is only part of the story; what about testing? It is important to ensure that all production code is adequately tested, and R is no different. Writing unit tests for R models is straight-forward using the popular testthat R package. With the help of some PowerShell it is possible to run these tests as part a continuous integration build and deployment pipeline.
Check out the video to see it in action.