Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print not obeying quote=T argument #1177

Closed
MichaelChirico opened this issue Jun 13, 2015 · 1 comment
Closed

print not obeying quote=T argument #1177

MichaelChirico opened this issue Jun 13, 2015 · 1 comment

Comments

@MichaelChirico
Copy link
Member

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.

@MichaelChirico
Copy link
Member Author

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

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

No branches or pull requests

2 participants