Skip to content

Commit

Permalink
Error now shows if you don't have all the variables assigned
Browse files Browse the repository at this point in the history
I really need to think of a better error to display
  • Loading branch information
kylehamilton committed Jul 23, 2017
1 parent a6af7d7 commit 14fe6a9
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
Binary file modified MetaModel.jmo
Binary file not shown.
3 changes: 2 additions & 1 deletion R/metacorr.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ MetaCorrClass <- R6::R6Class(

ready <- TRUE
if (is.null(self$options$rcor) || is.null(self$options$samplesize) || is.null(self$options$slab) == TRUE){
#if (is.null(self$options$rcor) == TRUE){

ready <- FALSE
# I really need to think of a better error message this is a place holder until I figure something out
jmvcore::reject("Correlations, Sample Sizes, and Study Label fields must be populated to run analysis", code='')
}
if (ready == TRUE) {

Expand Down
2 changes: 1 addition & 1 deletion build/R/MetaModel/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ License: GPL-3
Encoding: UTF-8
LazyData: true
Imports: jmvcore (>= 0.5.5), R6, metafor, gsl, MAc, ggplot2
Built: R 3.3.1; ; 2017-07-23 22:49:45 UTC; windows
Built: R 3.3.1; ; 2017-07-23 22:56:33 UTC; windows
Binary file modified build/R/MetaModel/Meta/package.rds
Binary file not shown.
Binary file modified build/R/MetaModel/R/MetaModel.rdb
Binary file not shown.
Binary file modified build/R/MetaModel/R/MetaModel.rdx
Binary file not shown.

0 comments on commit 14fe6a9

Please sign in to comment.