Learn R Programming

⚠️There's a newer version (0.21) of this package.Take me there.

pagedown

Paginate the HTML Output of R Markdown with CSS for Print. You only need a modern web browser (e.g., Google Chrome or Microsoft Edge) to generate PDF. No need to install LaTeX to get beautiful PDFs.

This R package stands on the shoulders of two giants to support typesetting with CSS for R Markdown documents: Paged.js and ReLaXed (we only borrowed some CSS from the ReLaXed repo and didn't really use the Node package).

You may install this package from Github:

remotes::install_github('rstudio/pagedown')

This package requires a recent version of Pandoc (>= 2.2.3). If you use RStudio, you are recommended to install the latest version (>= 1.2.1335), which has bundled Pandoc 2.x, otherwise you need to install Pandoc separately.

Below are some existing R Markdown output formats and examples.

Paged HTML documents (pagedown::html_paged)

Thesis (pagedown::thesis_paged)

Journal of Statistical Software article (pagedown::jss_paged)

Resume (pagedown::html_resume)

You may want to check out the datadrivencv package, which allows you to build a CV using data from a spreadsheet and pagedown::html_resume.

Posters

pagedown::poster_relaxed

pagedown::poster_jacobs

Want more poster styles? You may take a look at Brent Thorne's posterdown package.

Business cards (pagedown::business_card)

Letters (pagedown::html_letter)

Other examples

Authors and contributors

The main authors of this package are Yihui Xie (RStudio) and Romain Lesur. Romain has received a grant from the Shuttleworth Foundation for his work on both Paged.js and pagedown.

You can find the full list of contributors of pagedown here. We always welcome new contributions. In particular, if you are familiar with CSS, we'd love to include your contributions of more creative and beautiful CSS stylesheets in this package. It is also very helpful if you don't know CSS but just tell us the creative and beautiful web pages you have seen, since other CSS experts may be able to port them into pagedown.

Copy Link

Version

Install

install.packages('pagedown')

Monthly Downloads

15,769

Version

0.20

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 13th, 2022

Functions in pagedown (0.20)

html_resume

Create a resume in HTML
chrome_print

Print a web page to PDF or capture a screenshot using the headless Chrome
poster_relaxed

Create posters in HTML
html_paged

Create a paged HTML document suitable for printing
business_card

Create business cards
book_crc

Create a book for Chapman & Hall/CRC
html_letter

Create a letter in HTML
find_chrome

Find Google Chrome, Microsoft Edge or Chromium in the system
jss_paged

Create an article for the Journal of Statistical Software
thesis_paged

Create a paged HTML thesis document suitable for printing