Skip to content

jrwishart/rautotest.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rautotest.nvim

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.

📦 Installation

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
}

✨ Usage

Load to a testthat file from your R package into a buffer, and run the command

:RAutotestTestFile

rautotest.nvim demo

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

About

Execute R tests linked to a source file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published