Skip to content

Commit 9011fba

Browse files
committed
update remotes
1 parent 8890d1e commit 9011fba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ Suggests:
5757
simsurv,
5858
survAUC,
5959
testthat
60-
Remotes:
61-
alan-turing-institute/distr6,
62-
mlr-org/mlr3
6360
LinkingTo:
6461
Rcpp
6562
ByteCompile: true

R/PredictionDataSurv.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ c.PredictionDataSurv = function(..., keep_duplicates = TRUE) {
6868
}
6969

7070
if ("distr" %in% predict_types) {
71-
if (inherits(dots$distr, "VectorDistribution")) {
71+
if (inherits(dots[[1]]$distr, "VectorDistribution")) {
7272
result$distr = do.call(c, map(dots, "distr"))
7373
} else {
7474
result$distr = tryCatch(
75+
# Ideally we keep returned object as a matrix but this may
76+
# not be possible if the number of columns doesn't match up.
77+
# In this case we convert internally within distr6
7578
do.call(rbind, map(dots, "distr")),
7679
error = function(e) {
7780
do.call(c, map(dots,

0 commit comments

Comments
 (0)