Skip to content

Commit

Permalink
allow for null
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Nov 13, 2024
1 parent 4394761 commit 32e4334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/SimSolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ SimSolve <- function(design, interval, b, generate, analyse, summarise,
summary.SimSolve <- function(object, tab.only = FALSE, reps.cutoff = 300, ...)
{
ret <- attr(object, 'roots')
if(ret[[1L]]$integer){
if(!is.null(ret[[1L]]$integer) && ret[[1L]]$integer){
stored_tab <- lapply(ret, function(x) attr(x, "stored_tab"))
stored_tab <- lapply(stored_tab, function(x)
x[x$reps > reps.cutoff, , drop=FALSE])
Expand Down

0 comments on commit 32e4334

Please sign in to comment.