Skip to content

Commit

Permalink
cran 1.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Sep 29, 2024
1 parent e8bbddf commit 4036e8b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: jsmodule
Title: 'RStudio' Addins and 'Shiny' Modules for Medical Research
Version: 1.5.8
Date: 2024-09-20
Version: 1.5.9
Date: 2024-09-29
Authors@R: c(
person("Jinseob", "Kim", email = "jinseob2kim@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9403-605X")),
person("Zarathu", role = c("cph", "fnd")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# jsmodule 1.5.9
## Bugfix:
- `sav` file load in `FilePSInput.R`, `FileRepeatedInput.R`, `FileSurveyInput.R`

# jsmodule 1.5.8

## Update
Expand Down
4 changes: 2 additions & 2 deletions R/FilePsInput.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ FilePs <- function(input, output, session, nfactor.limit = 20) {
return(list(
data = out, data_varStruct = data_varStruct, factor_original = factor_vars,
conti_original = conti_vars, factor_adds_list = factor_adds_list,
factor_adds = add_vars, naCol = naCol, except_vars = except_vars, ref = ref, naomit = naomit
factor_adds = add_vars, naCol = naCol, except_vars = except_vars, ref = ref, naomit = naomit, data.old = out.old
))
})

Expand Down Expand Up @@ -402,7 +402,7 @@ FilePs <- function(input, output, session, nfactor.limit = 20) {
out.label <- mk.lev(out)

if (tools::file_ext(input$file$name) == "sav") {
out.label <- mk.lev2(data()$data.old, out.label)
out.label <- mk.lev2(data.info()$data.old, out.label)
}

if (!is.null(input$check_binary)) {
Expand Down
2 changes: 1 addition & 1 deletion R/FileRepeatedInput.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ FileRepeated <- function(input, output, session, nfactor.limit = 20) {
# except_vars <- names(nclass)[ nclass== 1 | nclass >= 10]
add_vars <- names(nclass)[nclass >= 2 & nclass <= 5]
# factor_vars_ini <- union(factor_vars, add_vars)
return(list(data = out, factor_original = factor_vars, conti_original = conti_vars, factor_adds_list = names(nclass)[nclass <= nfactor.limit], factor_adds = add_vars, ref = ref, naomit = naomit))
return(list(data = out, data.old = out.old, factor_original = factor_vars, conti_original = conti_vars, factor_adds_list = names(nclass)[nclass <= nfactor.limit], factor_adds = add_vars, ref = ref, naomit = naomit))
})


Expand Down
2 changes: 1 addition & 1 deletion R/FileSurveyInput.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ FileSurvey <- function(input, output, session, nfactor.limit = 20) {
# except_vars <- names(nclass)[ nclass== 1 | nclass >= 10]
add_vars <- names(nclass)[nclass >= 2 & nclass <= 5]
# factor_vars_ini <- union(factor_vars, add_vars)
return(list(data = out, factor_original = factor_vars, conti_original = conti_vars, factor_adds_list = names(nclass)[nclass <= nfactor.limit], factor_adds = add_vars, ref = ref, naomit = naomit))
return(list(data = out, data.old = out.old, factor_original = factor_vars, conti_original = conti_vars, factor_adds_list = names(nclass)[nclass <= nfactor.limit], factor_adds = add_vars, ref = ref, naomit = naomit))
})


Expand Down

0 comments on commit 4036e8b

Please sign in to comment.