hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
322 stars 28 forks source link

print_screen() with colnames = FALSE doesn't print a final newline #190

Closed hughjonesd closed 3 years ago

hughjonesd commented 3 years ago

Example:

>ht <- huxtable(a = 1:5, b = 1:5)
> print_screen(ht, colnames = F)
                                     a         b  
                                     1         1  
                                     2         2  
                                     3         3  
                                     4         4  
                                     5         5  > 
hughjonesd commented 3 years ago

NB: seems to be avoided within Rstudio, which always prints a newline after output:

Rstudio:

> cat("foo")
foo
> cat("foo\n")
foo

Terminal:

> cat("foo")
foo> cat("foo\n")
foo
>