This package includes the complete guide in multiple formats for your convenience.
- Raw markdown format
- Best for: Reading in text editors, version control, GitHub
- View in: Any text editor, GitHub, VS Code, etc.
- Fully formatted with styling
- Best for: Web browsers, printing to PDF from browser, sharing
- Features: Table of contents, syntax highlighting, responsive design
- Open in: Any web browser
- Print to PDF: Use browser's Print function (Ctrl+P or Cmd+P)
- High-quality formatted document
- Best for: Distribution, offline reading, printing
- Create with: See instructions below
Ensure you have the required R packages:
# Install required packages (one time)
install.packages("rmarkdown")
tinytex::install_tinytex() # This installs a lightweight LaTeX distributionThen generate the PDF:
# In R console, from the shinyModals directory
source("create_guide_pdf.R")This will create GUIDE.pdf in the current directory.
- Open
GUIDE.htmlin your web browser - Press
Ctrl+P(Windows/Linux) orCmd+P(Mac) - Select "Save as PDF" as the printer
- Click "Save"
- Name it
GUIDE.pdf
Advantages:
- No additional software needed
- Works on any computer
- Output is professional looking
- Takes 30 seconds
If you have Pandoc installed:
pandoc GUIDE.md -o GUIDE.pdf --pdf-engine=xelatexOr with more styling options:
pandoc GUIDE.md -o GUIDE.pdf \
--pdf-engine=xelatex \
--toc \
--number-sections \
--highlight-style=tango \
-V geometry:margin=1ininstall.packages("rmarkdown")install.packages("tinytex")
tinytex::install_tinytex()This means LaTeX is not installed. Install one of:
- tinytex (recommended):
tinytex::install_tinytex() - MiKTeX (Windows): https://miktex.org/download
- TeX Live (Linux):
sudo apt-get install texlive-xetex - MacTeX (Mac): https://www.tug.org/mactex/
- Use Option 2 (Browser print) - it usually works best
- Make sure you're using a modern browser (Chrome, Firefox, Safari, Edge)
- Try printing with "Background graphics" enabled
| File | Format | Size | Best For |
|---|---|---|---|
| GUIDE.md | Markdown | ~30 KB | Development, version control |
| GUIDE.html | HTML | ~80 KB | Web browser, sharing, print to PDF |
| GUIDE.pdf | ~200 KB | Distribution, printing, offline reading |
- For reading: Use
GUIDE.html(nicest formatting) - For sharing: Use
GUIDE.htmlorGUIDE.pdf - For printing: Use
GUIDE.html(print to PDF from browser) - For version control: Use
GUIDE.md - For archiving: Use
GUIDE.pdf
# 1. Open in browser
open GUIDE.html # Mac
start GUIDE.html # Windows
xdg-open GUIDE.html # Linux
# 2. Press Ctrl+P (or Cmd+P)
# 3. Select "Save as PDF"
# 4. Click Save
# Done! You have GUIDE.pdfUpdated: December 10, 2025
shinyModals Version: 0.4.0