Skip to content

Commit 42a20af

Browse files
committed
expand package info
1 parent 82a60dc commit 42a20af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inst/app/modules/info/mod_info_ui.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mod_info_ui <- function(id) {
1010
h4("About this app"),
1111
p("This application allows simulation and evaluation of Bayesian trial designs using conjugate Beta–Binomial models."),
1212
p("It supports both randomized trials and single-arm studies with optional historical borrowing."),
13+
p(HTML('For documentation and source code, visit the <a href="https://github.com/smartdata-analysis-and-statistics/bcts" target="_blank">GitHub repository</a>.')),
1314
br(),
1415
h5("Version info"),
1516
verbatimTextOutput(ns("version_text"))
@@ -24,9 +25,12 @@ mod_info_server <- function(id) {
2425
moduleServer(id, function(input, output, session) {
2526
ns <- session$ns
2627

28+
ver <- as.character(utils::packageVersion("bcts"))
29+
date <- utils::packageDescription("bcts")$Date %||% Sys.Date()
30+
2731
output$version_text <- renderText({
2832
paste(
29-
"bcts version:", as.character(utils::packageVersion("bcts")),
33+
"bcts version:", ver, "\nBuild date:", date,
3034
"\nR version:", R.version.string,
3135
"\nPlatform:", R.version$platform
3236
)

0 commit comments

Comments
 (0)