Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Mar 11, 2018
1 parent 8c95c44 commit 9c1d4c2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: mirtCAT
Version: 1.6.5
Version: 1.7
Type: Package
Title: Computerized Adaptive Testing with Multidimensional Item
Response Theory
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# mirtCAT 1.7

- message added in red whenever selection conditions not met (e.g., when using forced choice, rating
scale options, or new mastery input)

- added an optioanl `Mastery` input colum to `df` to prevent the GUI from continuing until
the item is answered correctly (not useful for CATs, but supported for teaching interfaces)

Expand Down
6 changes: 3 additions & 3 deletions R/mirtCAT.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' \item{\code{Type}}{Indicates the type of response input
#' to use from the shiny package. The supported types are: \code{'radio'} for radio buttons
#' (\code{\link{radioButtons}}), \code{'select'} for a pull-down box for selecting
#' inputs (\code{\link{selectInput}}), \code{'rankselect'} for a set of pull-down boxs rank-ordering
#' inputs (\code{\link{selectInput}}), \code{'rankselect'} for a set of pull-down boxes rank-ordering
#' inputs (\code{\link{selectInput}}) associated with each option supplied,
#' \code{'text'} and \code{'textArea'} for requiring
#' typed user input (\code{\link{textInput}} and \code{\link{textAreaInput}}),
Expand Down Expand Up @@ -123,7 +123,7 @@
#' \code{'MPWI'} for maximum posterior weighted information, \code{'MEI'} for
#' maximum expected information, and \code{'IKLP'} as well as \code{'IKL'} for the
#' integration based Kullback-Leibler criteria with and without the prior density weight,
#' respectively, and their root-nitems administered weighted counter-parts, \code{'IKLn'} and
#' respectively, and their root-n items administered weighted counter-parts, \code{'IKLn'} and
#' \code{'IKLPn'}.
#'
#' Possible inputs for multidimensional adaptive tests include: \code{'Drule'}
Expand Down Expand Up @@ -185,7 +185,7 @@
#' first before running the simulations in parallel? Setting to \code{TRUE} will ensure that
#' using the cluster will be optimal every time a new \code{cl} is defined. Default is \code{TRUE}
#'
#' @param customTypes an optional list input contaning functions for Designing Original Graphical Stimuli (DOGS).
#' @param customTypes an optional list input containing functions for Designing Original Graphical Stimuli (DOGS).
#' DOGS elements in the input list must contain a unique name, and the item with which it is associated must be
#' declared in the a \code{df$Type} input. The functions defined must be of the form
#'
Expand Down
10 changes: 6 additions & 4 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ server <- function(input, output, session) {
default = ip)
stemOutput <- stemContent(pick)
.MCE$prevClick <- click
return(list(outmessage, stemOutput,
return(list(stemOutput,
.MCE$shinyGUI$df$Rendered_Question[[pick]],
tmp$questions))
tmp$questions, outmessage))
}
}

Expand All @@ -152,6 +152,8 @@ server <- function(input, output, session) {
} else {
if(.MCE$shinyGUI$time_before_answer >= (proc.time()[3L] - .MCE$start_time) ||
(.MCE$shinyGUI$forced_choice && .MCE$shinyGUI$df$Type[pick] != 'none')){
if(.MCE$shinyGUI$time_before_answer >= (proc.time()[3L] - .MCE$start_time))
outmessage <- NULL
.MCE$shift_back <- .MCE$shift_back + 1L
.MCE$invalid_count <- .MCE$invalid_count + 1L
tmp <- lapply(.MCE$shinyGUI$df, function(x, pick) x[pick], pick=pick)
Expand All @@ -162,9 +164,9 @@ server <- function(input, output, session) {
default = ip)
stemOutput <- stemContent(pick)
.MCE$prevClick <- click
return(list(outmessage, stemOutput,
return(list(stemOutput,
.MCE$shinyGUI$df$Rendered_Question[[pick]],
tmp$questions))
tmp$questions, outmessage))
} else {
.MCE$person$item_time[pick] <- proc.time()[3L] - .MCE$start_time
.MCE$start_time <- NULL
Expand Down
12 changes: 9 additions & 3 deletions man/mirtCAT.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c1d4c2

Please sign in to comment.