An nvim plugin for R development that runs and decorates individual testthat files in a buffer with test results. It does this by running an external R process via the plumber package, which allows you to run R code as a web service. The plumber process is then used to call devtools to load the R package and testthat to run the tests.
Use your favorite plugin manager to install rautotest.nvim and its dependencies (currently depends on R with plumber, testthat and devtools libraries installed). For example,
use {
    "jrwishart/rautotest.nvim",
    ft = {'r'}, -- optional, only load plugin for r files
}{
    jrwishart/rautotest.nvim,
    ft = {'r'} -- optional, only load plugin for r files
}Load to a testthat file from your R package into a buffer, and run the command
:RAutotestTestFile
Doing so will run an external R process via plumber to run the tests in then file and then decorate the buffer with the results of the tests.
If you wish to remove the decorations from the buffer, you can run the command
:RAutotestClearMarks
