Modified version of the postr package from Oscar de Leon with changes from Luke Johnston. Also big thanks to the tutial here by Wei Yan Tham. This package consists of some minor updates and incorporating some functionality I liked from posterdown, which is another good option for poster templates in Rmarkdown. Full disclosure: I have no idea what I’m doing.*
This package provides templates and helper functions to prepare R Markdown based conference posters with a free and reproducible workflow and produce output both in html for hosting and png for printing. Relies on the flexdashboard package to easily define poster layout.
But really, making a poster with flexdashboard is as relative straightforward: write the rmarkdown text, check the size formatting, capture the screenshot. Maybe you open the image and save as PDF somewhere else. More time spent on writing good content, less time fussing with the padding between text boxes on powerpoint. I did this to save time for my future self. I will undoubtedly save lots of time.
*If this package works for you, you should probably just clone it and save it as your own. Who knows how I’ll screw this up in the future.
source: https://imgs.xkcd.com/comics/automation.png
This poster template depends on the following R packages
In order to use this poster template, you need to:
Install from github
devtools::install_github("rbcavanaugh/flex.poster")
Create a new R Markdown document in Rstudio based on the poster
template, or run
rmarkdown::draft("my_poster.Rmd", template = "poster", package = "flex.poster")
rmarkdown::metadata
Render the poster as an html file:
rmarkdown::render("my_poster.Rmd")
(or just hit knit in rstudio).
set render_print: to false until you’re ready to make the poster.
Convert the html file as a printable image:
flex.poster::render_poster_image("my_poster.html")
. File
conversion is done by taking a screenshot of the rendered HTML doc.
note this update does not use webshot/phantonJs, but uses webshot2 which does not require phantonJs but does require chrome to be installed in your computer. see https://github.com/rstudio/webshot2
A new poster! Not quite done yet…
?render_poster_image
will provide possible arguments for rendering
options (e.g. portrait aspect ratio)render_poster_image
. The default width is 1600 pixels x 1200
pixels for height. I’ve found this to generate reasonable font sizes
for the amount of information I want to include on a poster, but a
smaller window will result in larger font and larger windows will
result in smaller fonts. You can also change the font explicitly in
the rmarkdown document using html tags.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.