Skip to content

Commit

Permalink
Fix bug printing info on maps with no optimizations runs
Browse files Browse the repository at this point in the history
  • Loading branch information
shwilks committed Jun 12, 2019
1 parent 0705984 commit e99010c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Racmacs/R/map_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ print.rac <- function(map, all = FALSE){
if(!all){

# Print only a summary of optimizations
class(map$optimizations) <- "racoptimizations"
if(!is.null(map$optimizations)){
class(map$optimizations) <- "racoptimizations"
}

# Work out which attributes not to print
null_attributes <- vapply(map, is.null, logical(1))
Expand Down

0 comments on commit e99010c

Please sign in to comment.