Questions tagged [tablehtml]

tableHTML is an R package that helps you create HTML tables and style them with CSS. It is available to download from CRAN.

This is an R package that helps create HTML tables in an easy way which are compatible with shiny. You can also add inline css styles with the add_css function family.

tablehtml_logo

18 questions
5
votes
1 answer

Issue with webshot.js in R

My goal is to save a dataframe, aov output, etc. as an image that has been processed by an R packages that formats r data into scientific journal ready formats, like sjPlot. >library(sjPlot) >library(webshot) >library(tableHTML) >tab_df(df,…
ruggntub
  • 95
  • 5
4
votes
3 answers

Export html table in R with recognition of hyperlinks

I know this question has been asked before few times, but the answers provided are not fitting my task unfortunately. this is an example: exporting table in R to HTML with hyperlinks I need to export dataframe from R to html while providing…
Bahi8482
  • 489
  • 5
  • 15
2
votes
2 answers

Color trouble with Rmarkdown generated HTML tables

Maybe this is just a stupid browser related issue, but ... I generate some colored tables in a HTML file via Rmarkdown using the tableHTML package (colors are generated by the RColorBrewer package): ```{r Init,…
2
votes
1 answer

How to format colnames text in tableHTML package?

HTML is working fine in the rownames as well as in the caption and in the footer. Contrary to intuition in the colnames it's not working. How could I achieve equivalent formatting within the colnames? mx <- matrix(1:9, nrow = 3, …
jay.sf
  • 60,139
  • 8
  • 53
  • 110
2
votes
1 answer

Shiny - Changing size, colour and font of text (boxes)

This must be a simple question, but I haven't managed to find any script or advice regarding changing the size, font and colour of text in shinyDashboard boxes. Say for example, I want to make this box display 14px Arial grey text: box(width = 4,…
Pryore
  • 510
  • 9
  • 22
2
votes
1 answer

tableHTML in shiny: show an image in a cell

I want to show an image in a shiny UI cell using tableHTML. However, it is simply displaying the text. Any help? library(shiny) a = data.frame(rows = 1:2, icons = '
Fisseha Berhane
  • 2,533
  • 4
  • 30
  • 48
1
vote
3 answers

Conditional highlighting of rows in tableHTML

In tableHTML: Is there a way to highlight complete rows based on one conditional column? Something like this, but also with red cells in the mpg-, cyl- and disp-columns: tableHTML(mtcars[1:10,1:3]) %>% add_css_conditional_column(conditional =…
1
vote
0 answers

Save checkbox input in offline HTML

I am working on a project in R where I export a resulting dataset into HTML format that is saved on dropbox or goole drive, then the team members have to review each particular row and mark it if it meets criteria. Each member will be working on…
Bahi8482
  • 489
  • 5
  • 15
1
vote
0 answers

SQL Server 2012 - Formating a timeline in @tableHTML Header

I´m new on this site and with SQL, so apologies for my humble question. I have written reports in SQL Server 2012 environment. The problem is, how get a dynamic timeline to work in the header of the report? Reports are run at the first and 16th day…
Hande_57
  • 11
  • 1
1
vote
0 answers

jquery-mobile paginated table

I'm trying to paginate a table with many rows but I have a problem. The table is loaded with data received from the server, these data bring 1 data in common called territory. If they are the same territory the grouped in a special row to give click…
sioesi
  • 497
  • 1
  • 5
  • 20
1
vote
1 answer

R tableHTML add_css text-align centre not working in Shiny

I'm trying to style a table in a Shiny app using the tableHTML package in R. When I use the tableHTML() function in R it produces exactly what I want. I use the add_css_column to align the text in the column to the centre. However when I use it in a…
0
votes
1 answer

Combine / merge multiple HTML documents in r

I have a folder with a multiple html files that I would like to combine into one file in R. can be just combined as one long file or (ideally) a more fancy file with table of contents. This is to create very simple files to reproduce the…
Bahi8482
  • 489
  • 5
  • 15
0
votes
0 answers

How to save or export tableHTML object in rstudio?

I have written a few line of codes using library(tableHTML). The result is viewed in the viewer, But i am unable to save the same result to a jpg file or any image file. Below i have attached screenshot of my result. the data set which is shown in…
user7662688
0
votes
1 answer

How to highlight certain strings in R tablehtml?

This is what I want Here is my code following Clemens post library(magrittr) sample1$sentence %<>% stringr::str_replace_all(c('red' = 'red')) sample1 %>% tableHTML() Can anyone please help? Thanks.
Mira Shen
  • 1
  • 2
0
votes
4 answers

Add attribute to dynamicaly created table

Helo, I'm working with external software which is generating reports. I'm getting table, then it is printed to website in div. I don't have access to this table before it is generated, so i can't set any attribute before website is rendered. So I…
user8839514
1
2