Skip to content

print not obeying quote=T argument #1177

Closed

Description

@MichaelChirico

I'm testing output after trimming some whitespace from some character fields to make sure everything looks right; this exercise of course requires being able to detect whether whitespace still exists.

The default print method for data.tables does not allow this:

dt<-data.table(str=c("   yo  "))
print(dt,quote=T)
      str
1:    yo 

But this option is helpful for print.data.frame:

print.data.frame(dt,quote=T)
       str
1 "   yo "

The problem is print.data.frame immediately converts the object to a matrix before passing it to print.default -> .Internal(print.default(...)), which has no immediate port to data.tables due to the middle clipping.

Activity

  1. MichaelChirico commented on Sep 11, 2015

    @MichaelChirico
    MemberAuthor

    @arunsrinivasan having looked over this again I think it's a feature request instead of a bug

  2. added a commit that references this issue on Sep 14, 2015
    0cd7803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions