Skip to content

Commit 67478d4

Browse files
committed
Fix inherits - broken due to breaking change in splines2 0.5
splines2 v0.5.0 made a breaking change, and the class was renamed from iSpline to ISpline, and the order of the class heirarchy was also changed. Same for their mSpline class, etc.
1 parent 46e8c90 commit 67478d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/stan_surv.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,8 @@ make_basis <- function(times, basehaz, integrate = FALSE) {
17321732
basis_matrix <- function(times, basis, integrate = FALSE) {
17331733
out <- predict(basis, times)
17341734
if (integrate) {
1735-
stopifnot(inherits(basis, "mSpline"))
1736-
class(basis) <- c("matrix", "iSpline")
1735+
stopifnot(inherits(basis, "MSpline"))
1736+
class(basis) <- c("ISpline", "splines2", "matrix")
17371737
out <- predict(basis, times)
17381738
}
17391739
aa(out)

0 commit comments

Comments
 (0)