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
Milestone

Comments

@gvfarns
Copy link

@gvfarns 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 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 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants