Skip to content

Commit f9b6751

Browse files
committed
0.0.32.64 Change notice insertion index to 999 in results
Updated all instances of self$results$insert(1, notice) to self$results$insert(999, notice) in datetimeconverter.b.R and multisurvival.b.R to modify the position where notices are inserted. Also incremented the version and date in DESCRIPTION and jamovi/0000.yaml to 0.0.32.64 and 2025-12-31.
1 parent 91abdfd commit f9b6751

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: jsurvival
33
Title: Survival Module of ClinicoPath for jamovi
4-
Version: 0.0.32.62
5-
Date: 2025-12-28
4+
Version: 0.0.32.64
5+
Date: 2025-12-31
66
Authors@R: person(given = "Serdar", family = "Balci", role = c("aut",
77
"cre"), email = "serdarbalci@serdarbalci.com", comment =
88
c(ORCID = "0000-0002-7852-3851"))

R/datetimeconverter.b.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
5555
type = jmvcore::NoticeType$ERROR
5656
)
5757
notice$setContent('No valid datetime values found for format detection. • All values in the selected variable are missing (NA). • Select a different variable or check your data source.')
58-
self$results$insert(1, notice)
58+
self$results$insert(999, notice)
5959
return(list(format = "unsure", warnings = 'Auto-detection unavailable: all values missing.'))
6060
}
6161

@@ -148,7 +148,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
148148
type = jmvcore::NoticeType$WARNING
149149
)
150150
notice$setContent(msg)
151-
self$results$insert(1, notice)
151+
self$results$insert(999, notice)
152152

153153
return(msg)
154154
},
@@ -482,7 +482,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
482482
'Error parsing datetimes with format "%s". • Parser error: %s • Try selecting a different format. • Check that your data matches the selected format.',
483483
format, e$message
484484
))
485-
self$results$insert(1, notice)
485+
self$results$insert(999, notice)
486486
# Return NA vector to allow analysis to continue
487487
return(rep(as.POSIXct(NA), length(datetime_vector)))
488488
})
@@ -1244,7 +1244,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
12441244
type = jmvcore::NoticeType$ERROR
12451245
)
12461246
notice$setContent('No datetime variable selected. • Please select a variable containing datetime information from the left panel. • Use the "DateTime Variable" dropdown to choose a column.')
1247-
self$results$insert(1, notice)
1247+
self$results$insert(999, notice)
12481248
return()
12491249
}
12501250

@@ -1267,7 +1267,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
12671267
datetime_var,
12681268
available_preview
12691269
))
1270-
self$results$insert(1, notice)
1270+
self$results$insert(999, notice)
12711271
return()
12721272
}
12731273

@@ -1278,7 +1278,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
12781278
type = jmvcore::NoticeType$ERROR
12791279
)
12801280
notice$setContent('Dataset contains no rows. • Please ensure your dataset has at least one observation. • Check for data loading or filtering issues.')
1281-
self$results$insert(1, notice)
1281+
self$results$insert(999, notice)
12821282
return()
12831283
}
12841284

@@ -1298,7 +1298,7 @@ datetimeconverterClass <- if (requireNamespace('jmvcore')) R6::R6Class(
12981298
"All values in '%s' are missing (NA). • Please select a column with valid datetime entries before proceeding.",
12991299
datetime_var
13001300
))
1301-
self$results$insert(1, notice)
1301+
self$results$insert(999, notice)
13021302
return()
13031303
}
13041304

R/multisurvival.b.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ multisurvivalClass <- if (requireNamespace('jmvcore'))
21812181
"Critical: Only %d events detected. Cox regression requires at least 10 events for reliable estimation. Recommendations: (1) Collect more data, (2) Extend follow-up period, (3) Use descriptive methods (Kaplan-Meier) instead of regression, or (4) Pool event types if clinically appropriate.",
21822182
n_events
21832183
))
2184-
self$results$insert(1, notice)
2184+
self$results$insert(999, notice)
21852185
return(NULL)
21862186
}
21872187

@@ -2196,7 +2196,7 @@ multisurvivalClass <- if (requireNamespace('jmvcore'))
21962196
"Low event count (%d events). Results may be unstable; confidence intervals may be unreliable; small-sample bias likely. Recommendations: (1) Interpret results cautiously and report exact p-values, (2) Consider Firth's penalized likelihood in R (coxphf package) for bias reduction, (3) Validate findings externally, or (4) Collect additional data if feasible.",
21972197
n_events
21982198
))
2199-
self$results$insert(1, notice)
2199+
self$results$insert(999, notice)
22002200
}
22012201

22022202
# WARNING: 20-49 events - Limited statistical power
@@ -2729,7 +2729,7 @@ multisurvivalClass <- if (requireNamespace('jmvcore'))
27292729
type = jmvcore::NoticeType$ERROR
27302730
)
27312731
notice$setContent("AFT Model Error: Outcome with more than two levels is not supported for AFT models. Please select a binary outcome variable or disable competing risk analysis for AFT.")
2732-
self$results$insert(1, notice)
2732+
self$results$insert(999, notice)
27332733
return()
27342734
}
27352735
}
@@ -2767,7 +2767,7 @@ multisurvivalClass <- if (requireNamespace('jmvcore'))
27672767
type = jmvcore::NoticeType$ERROR
27682768
)
27692769
notice$setContent(paste0("AFT Model Fitting Error: ", e$message, ". Check data quality, ensure adequate events, and verify distribution choice is appropriate for your data."))
2770-
self$results$insert(1, notice)
2770+
self$results$insert(999, notice)
27712771
return(NULL)
27722772
})
27732773

@@ -6686,7 +6686,7 @@ where 0.5 suggests no discriminative ability and 1.0 indicates perfect discrimin
66866686
type = jmvcore::NoticeType$ERROR
66876687
)
66886688
notice$setContent(paste0("Survival Decision Tree Error: ", e$message, ". Recommendations: (1) Check sufficient data for tree building, (2) Try reducing minimum node size, or (3) Ensure variables contain valid data."))
6689-
self$results$insert(1, notice)
6689+
self$results$insert(999, notice)
66906690
return(NULL)
66916691
})
66926692
}

jamovi/0000.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Survival Module of ClinicoPath for jamovi
33
name: jsurvival
4-
version: 0.0.32.62
4+
version: 0.0.32.64
55
jms: '1.0'
66
authors:
77
- Serdar Balci
88
maintainer: Serdar Balci <serdarbalci@serdarbalci.com>
9-
date: '2025-12-28'
9+
date: '2025-12-31'
1010
type: R
1111
description: >-
1212
Survival Module of ClinicoPath for jamovi ClinicoPath help researchers to

0 commit comments

Comments
 (0)