minor adjustments and bug fixing

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-21 11:18:38 +01:00
commit 40d95e41c3
No known key found for this signature in database
14 changed files with 256 additions and 71 deletions

View file

@ -5,6 +5,6 @@ account: agdamsbo
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 11351429
bundleId: 9392320
bundleId: 9392352
url: https://agdamsbo.shinyapps.io/redcapcast/
version: 1

View file

@ -63,8 +63,8 @@ server <- function(input, output, session) {
v$file <- "loaded"
ds2dd_detailed(
data = dat(),
add.auto.id = input$add_id=="yes"
)
add.auto.id = input$add_id == "yes"
)
})
output$uploaded <- shiny::reactive({
@ -131,8 +131,9 @@ server <- function(input, output, session) {
filename = paste0("REDCapCAST_instrument", Sys.Date(), ".zip"),
content = function(file) {
export_redcap_instrument(purrr::pluck(dd(), "meta"),
file = file,
record.id = ifelse(input$add_id=="none",NA,names(dat())[1]))
file = file,
record.id = ifelse(input$add_id == "none", NA, names(dat())[1])
)
}
)

View file

@ -2,6 +2,5 @@ ui <-
bslib::page(
theme = bslib::bs_theme(preset = "united"),
title = "REDCap database creator",
nav_bar_page()
nav_bar_page()
)