dark-peak-analytics / assertHE

R package to assist in the verification of health economic decision models.
https://dark-peak-analytics.github.io/assertHE/
Other
4 stars 10 forks source link

Overwriting testthat path with two levels up if in package testing mode. #8

Closed RobertASmith closed 9 months ago

RobertASmith commented 9 months ago

This is a shitty solution, but seems to work.

if (testthat::testing_package() != "") {
      path <- dirname(dirname(getwd()))
    } else{
      path <- getwd()
    }