Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to R View() in server environment with no X11

Tags:

r

I work with R in a linux server and would like to have a functionality similar to View() in RStudio where you can look at your dataset in a tabular format.

The problem is I will not have x11 enabled, this is not an option.

Is there any good alternative way?

like image 529
António Mendes Avatar asked Oct 16 '17 07:10

António Mendes


1 Answers

You can use the package tableHTML which produces an HTML table that can be seen in the viewer and/or browser.

It is fairly easy to use, all you need to to is:

library(tableHTML)

tableHTML(mtcars, rownames = FALSE, theme = 'scientific')

This returns:

tableHTML_mtcars

like image 123
clemens Avatar answered Oct 20 '22 10:10

clemens