Open gyansinha opened 10 years ago
Please post a reproducible example along with links to Rmd and HTML files.
Here's a quick hack that demonstrates it - also don't quite understand why the left column is always bolded and how to control that.
---
title : A Simple Test
subtitle :
author :
job :
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
---
## Slide 1
```{r kagle_test_default, results='asis'}
tmp.df <- data.frame(matrix(runif(25),nrow=5,ncol=5,byrow=T))
colnames(tmp.df) <- paste('Col',1:5,sep='_')
kable(tmp.df,row.names=NA,digits=2)
--- .class #id
kable(tmp.df,row.names=NA,digits=2,align='r')
The align
attribute has been deprecated in HTML5 and so will not work. You will have to use CSS to directly control alignment. The default CSS in Slidify is set to align columns to left.
And what do you mean by left column being bolded? Do you mean it is bolded here in your comment, or in the slide deck?
Did you resolve this issue based on my comments?
The bolded comment refers to the left most column in the slide deck - not sure if it's there as a feature or something else.
I have not yet found a solution - my working knowledge of CSS is very limited so I'll have to invest a lot more time in it before it can be of use to me - I do understand what the issue is now though, thanks for your help.
Hi ! Ramnathv!
This is Namju from Korea. I am charging in IT Team at Manufacturing company. Recently I heard about R and Slidify package that is perfect for our business.
So I have started studying R and Sliidfy package. But when I install Slidify package, happen to see this below. please help me. Thanks.
install_github('slidify', 'ramnathv') Downloading GitHub repo ramnathv/slidify@master Installing slidify Installing 1 packages: stringi package ‘stringi’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘stringi’ "C:/PROGRA~1/R/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore CMD INSTALL \ "C:/Users/1133/AppData/Local/Temp/Rtmpm6TvNl/devtools1934488561ba/ramnathv-slidify-1dd41a3" \ --library="D:/R/win-library/3.2" --install-tests
- installing source package 'slidify' ... * R * inst * tests * preparing package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'stringi' ERROR: lazy loading failed for package 'slidify'
- removing 'D:/R/win-library/3.2/slidify' Error: Command failed (1) In addition: Warning message: Username parameter is deprecated. Please use ramnathv/slidify
Hi Ramnath:
I am using the kable function to create a table from an r dataframe - "kable(tmp.df,row.names=NA,align='r')".
While I can see the html has the align attribute for the table, the final output from knit2html keeps it left centered. Any ideas?
thanks for your help.