display / print huxtable in Rstudio / R plot or viewer window; not to knit a markdown document?

Viewed 155

In an a collaborative work I'm required to use huxtable to visualize some output. So far I have not managed the very basic first step to display a huxtable properly in the Rstudio plot or viewer window.

I'm used to whatever kind of package (ggplot etc.), which all allow you to preview your visualizations in the plot or viewer window eg. plot(mtcars).

However, the output of hux(mtcars[1:5, 1:4]) or huxtable(mtcars[1:5, 1:4]) shows up in the console only, which gives you little idea about how the final product my look like:

> hux(mtcars[1:5, 1:4])
                                          mpg     cyl    disp      hp  
                                         21         6     160     110  
                                         21         6     160     110  
                                         22.8       4     108      93  
                                         21.4       6     258     110  
                                         18.7       8     360     175  

Column names: mpg, cyl, disp, hp```

How to obtain a final output with huxtable? I would not like knit some kine an entire document when playing with some design features.

0 Answers
Related