Skip to content
Permalink
Browse files
supress warnings when calling hist()
  • Loading branch information
kevinushey committed Jul 31, 2018
1 parent bce4fad commit 5cf8c901559b2944d40f401c264a010d57c11fa4
Showing 1 changed file with 4 additions and 2 deletions.
@@ -132,8 +132,10 @@
hist_vals <- x[[idx]][is.finite(x[[idx]])]
if (length(hist_vals) > 1)
{
# create histogram for brushing
h <- hist(hist_vals, plot = FALSE)
# create histogram for brushing -- suppress warnings as in rare cases
# an otherwise benign integer overflow can occurs; see
# https://github.com/rstudio/rstudio/issues/3232
h <- suppressWarnings(hist(hist_vals, plot = FALSE))
col_breaks <- h$breaks
col_counts <- h$counts

0 comments on commit 5cf8c90

Please sign in to comment.