R throws a warning when printing H2OTable objects

Description

R throws the following warning when trying to print H2OTable objects with more than one row and column:

Warning messages:
1: In if (is.na(x[[j]])) xx[[j]] <- "" else xx[[j]] <- sprintf(formats[j], :
the condition has length > 1 and only the first element will be used

This is because in print.H2OTable (in communication.R), the for loop does not account for the fact that each x[[j]] is actually a vector, so is.na(x[[j]]) will be a vector of TRUE/FALSE values. We need a nested for loop, and we must deal with the fact that R does not allow a column to contain more than one type.

Activity

Show:
Lauren DiPerna
December 13, 2016, 12:55 AM

looks like the issue was resolved, this line of code no longer exists in communication.R, and if you want to look at an H2OTable with more than one line it seems to print out fine.

here are the other tickets that seem to be related to this one:
https://0xdata.atlassian.net/browse/PUBDEV-806
https://0xdata.atlassian.net/browse/PUBDEV-1708 (looks like this one could also be closed)
https://0xdata.atlassian.net/browse/PUBDEV-1660

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Lauren DiPerna

Reporter

Former user

CustomerVisible

No