hughjonesd / huxtable

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

remove printing of column names when printing an object of class huxtable #189

Closed maRce10 closed 3 years ago

maRce10 commented 3 years ago

Hi Hugh

Very cool package indeed! It would be great if you could add an option to remove the printing of the column names at the bottom of the table when printing an object of class huxtable, as shown in this image:

Captura de ecrã de 2020-12-08 08-54-57

thanks

Marcelo

hughjonesd commented 3 years ago

Hi Marcelo, Can you say who is likely to need this feature and why?

hughjonesd commented 3 years ago

More to the point, this already exists in print_screen(). Just set colnames = FALSE. If you want this to be true every time you evaluate a huxtable in the console, just set:

options(huxtable.print = function (h) {
   print_screen(h, colnames = FALSE)
  cat("\n")
})

See ?huxtable-options and ?print_screen for more info.

maRce10 commented 3 years ago

Hi

I actually wonder the same for the printing of the column names at the bottom. This is the first table formatting package that does that. So people is used to not having them printed.

maRce10 commented 3 years ago

thanks

maRce10 commented 3 years ago

More to the point, this already exists in print_screen(). Just set colnames = FALSE. If you want this to be true every time you evaluate a huxtable in the console, just set:

options(huxtable.print = function (h) {
   print_screen(h, colnames = FALSE)
  cat("\n")
})

See ?huxtable-options and ?print_screen for more info.

ok so the answer was a easy one, thanks