simstudy icon indicating copy to clipboard operation
simstudy copied to clipboard

Error checking genSpline generates unwanted warning

Open kgoldfeld opened this issue 3 years ago • 0 comments

In the unit testing the following test (properly) throws an error, but also throws a warning that causes problems. We need to remove the warning.

expect_error(genSpline( dt = dt, newvar = "weight",
                          predictor = "x1", theta = theta1,
                          knots = knots, degree = 3, newrange = "1;a",
                          noise.var = .025), regexp = "Non-numbers entered in range")

It is currently commented out.

kgoldfeld avatar Sep 28 '22 20:09 kgoldfeld