Skip to content

If bit64 isn't loaded, print.data.table() should warn if there are any integer64 columns present. #975

Closed

Description

@mattdowle

Suggested by Stephen McInerney in person after Bay Area R User Group meetup, Nov 2014.

It's a simple if() and would avoid apparent "garbage/corruputed" data when in fact all that's needed is to require(bit64) for correct printing.

Activity

  1. added this to the v1.9.8 milestone on Dec 1, 2014
  2. arunsrinivasan commented on Sep 8, 2015

    @arunsrinivasan
    Member

    Trying the data linked in #810, this is what I get:

    # Warning message:
    # In fread("810_fread.txt") :
    #   Some columns have been read as type 'integer64' but package bit64 isn't loaded. 
    # Those columns will display as strange looking floating point data. There is no need to 
    # reload the data. Just require(bit64) to obtain the integer64 print method and print the 
    # data again.

    What doesn't this warning address?

  3. mattdowle commented on Oct 21, 2015

    @mattdowle
    MemberAuthor

    Yes it seems this warning was already there for a long time, at least 2012.
    I guess then, and combined with this report, the suggestion was to add a warning in the print method too. Maybe integer64 columns were loaded from disk, created some other way, or the fread() warning simply missed. The overhead of checking the class attribute of all columns when bit64 is not loaded, shouldn't be a speed concern since it's only printing.

  4. changed the title [-]When fread reads integer64 it could warn if bit64 isn't loaded[/-] [+]If bit64 isn't loaded, print.data.table() should warn if there are any integer64 columns present.[/+] on Oct 21, 2015
  5. arunsrinivasan commented on Oct 29, 2015

    @arunsrinivasan
    Member

    Fixed in commit 9362c4d. Closes #975.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions