Mouse-Imaging-Centre / RMINC

Statistics for MINC volumes: A library to integrate voxel-based statistics for MINC volumes into the R environment. Supports getting and writing of MINC volumes, running voxel-wise linear models, correlations, etc.; correcting for multiple comparisons using the False Discovery Rate, and more. With contributions from Jason Lerch, Chris Hammill, Jim Nikelski and Matthijs van Eede. Some additional information can be found here:
https://mouse-imaging-centre.github.io/RMINC
Other
22 stars 17 forks source link

How to run test suite #317

Open rwickens opened 10 months ago

rwickens commented 10 months ago

I cannot find any issues documenting how to run the test suite for this package. I am trying to install it on my ARM Macbook and would like to verify the installation was successful. Any help would be appreciated. Thank you in advance.

gdevenyi commented 10 months ago

RMINC has testthat tests https://testthat.r-lib.org/

Usage
The easiest way to get started is with [usethis](https://github.com/r-lib/usethis). Assuming you’re in a package directory, just run usethis::use_test("name") to create a test file, and set up all the other infrastructure you need. If you’re using RStudio, press Cmd/Ctrl + Shift + T (or run devtools::test() if not) to run all the tests in a package.
cfhammill commented 10 months ago

you can also use runRMINCTestbed which sets some environment variables for you before running testthat::test_dir