Closed yonicd closed 7 years ago
when used in rmarkdown html_document the carousel div is ignored and pushed to the bottom of the rendered document. here is the raw rmd file
--- output: html_document: self_contained: false --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) library(slickR) library(ggplot2) library(dplyr) fig.dir=file.path(getwd(),'testSlickR_files/figure-html')
iris%>%ggplot(aes(x=Sepal.Length,y=Sepal.Width))+geom_point() iris%>%ggplot(aes(x=Sepal.Length,y=Sepal.Width))+geom_line() slickR(list.files(fig.dir,pattern = 'PLOT1-',full.names = T),slickOpts = list(dots=T),height='0')
iris%>%ggplot(aes(x=Species,y=Sepal.Width))+geom_boxplot() iris%>%ggplot(aes(x=Species,y=Sepal.Width))+geom_bar(stat='identity') slickR(list.files(fig.dir,pattern = 'PLOT2-',full.names = T),slideId ='newDiv' ,slickOpts = list(dots=T),height='0')
when used in rmarkdown html_document the carousel div is ignored and pushed to the bottom of the rendered document. here is the raw rmd file
Section
Subsection 1
Subsection 2