This is the website for the Post45 Data Collective, which uses Quarto, the R DT library, and the JavaScript Tabulator library.
Benefits of Quarto include: publication-quality, citeable articles and references that can be recognized by Google Scholar; easy integration with code such as data tables; articles that are created with Markdown, which can ease the publication pipeline by preserving formatting and links from submitted Word Documents and Google Docs; entirely free and open-source tools.
-
Install R (version 4.3 or higher recommended)
- Download from CRAN
-
Install Quarto
- Download from quarto.org
-
Install a code editor (optional but recommended)
- RStudio: Download from posit.co
- VS Code: Download from code.visualstudio.com
- Install the Quarto extension for VS Code
- Clone the repository:
git clone https://github.com/your-username/Post45-Website-Quarto.git
cd website- Install R packages:
Open R or RStudio and run:
# Install renv if you don't have it
install.packages("renv")
# Restore all required R packages (including dplyr, knitr, rmarkdown, etc.)
renv::restore()If using the command line, type R to open the R console, run the commands above, then type q() to quit R.
This will install all the R packages specified in renv.lock, ensuring you have the exact same dependencies as the project requires.
To preview the website locally:
Option 1: Command line
quarto previewOption 2: VS Code
- Open a
.qmdfile and click the "Preview" button in the top right corner of the editor
To render the site:
quarto render