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

glimse() does not terminate with newline as it should #590

Closed
gvfarns opened this issue Sep 9, 2014 · 0 comments
Closed

glimse() does not terminate with newline as it should #590

gvfarns opened this issue Sep 9, 2014 · 0 comments
Assignees
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@gvfarns
Copy link

gvfarns commented Sep 9, 2014

Small bug here: glimpse() outputs the table to the screen but does so using cat() with the parameter collapse="\n". This means each line has a newline after it except the last one. As a result, the R prompt ends up at the end of the table instead of on a new line.

> G <- data.frame(a=c(1,2,3),b=c("a","b","c"))
> glimpse(G)
Variables:
$ a (dbl) 1, 2, 3
$ b (chr) "a", "b", "c"> 

When it should work like this

> G <- data.frame(a=c(1,2,3),b=c("a","b","c"))
> glimpse(G)
Variables:
$ a (dbl) 1, 2, 3
$ b (chr) "a", "b", "c"
> 
@hadley hadley added the bug an unexpected problem or unintended behavior label Sep 11, 2014
@hadley hadley added this to the 0.3 milestone Sep 11, 2014
@hadley hadley self-assigned this Sep 11, 2014
@hadley hadley closed this as completed in 4abf4e1 Sep 12, 2014
krlmlr pushed a commit to krlmlr/dplyr that referenced this issue Mar 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants