Skip to content

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

@gvfarns

Description

@gvfarns

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"
> 

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions