Source of the NEST website 🪺, built with Quarto.
NEST is a set of open-source R packages for clinical research, born at Roche and built with pharmaverse. The site introduces the packages, shares news and events, and tells the NEST story.
| Path | What it holds |
|---|---|
index.qmd, products.qmd, news.qmd, about.qmd |
The pages |
posts/<post-id>/index.qmd |
One folder per news post |
products/*.yml |
The product list shown on the Products page |
assets/ |
Images and other static files |
theme/nest.scss |
Site styling |
_quarto.yml |
Site configuration and navigation |
You do not need to install any NEST packages or R, unless your post runs R code (see Show R output in a post). Pick whichever route suits you.
- Add or edit files with the GitHub web editor, or upload them to a branch.
- Open a pull request. A preview of the site is built and linked in a comment on the PR, and it is refreshed on every push.
- Review the preview, then ask for a review. Merging to
mainpublishes the site.
Previews are only built for branches in this repository. If you do not have write access, fork and open a PR, and a maintainer can preview it locally.
-
Install Quarto (version 1.11.9 is what CI uses).
-
Clone the repository and run:
quarto previewThe site opens in your browser and reloads when you save a file.
-
To produce the full site as static files, run
quarto render. The output goes to_site/.
-
Create a folder under
posts/named with the post's date and a short, lowercase title, for exampleposts/2026-11-10-teal-workshop. The date keeps folders in order and easy to find, and the whole name becomes the post's ID and part of its URL, so choose it carefully and keep it in step with thedate:in the post. -
Inside it, create
index.qmdstarting with this header:--- title: "Hands-on workshop: building your first teal app" description: "One or two sentences shown in the news list." author: - name: "Your Name (Company)" date: "2026-11-10" categories: ["Events"] ---
-
Write the post below the header in Markdown. Put images next to
index.qmdand refer to them by file name. -
Preview it (see above), then open a pull request.
Details worth knowing:
- Date controls the order. The newest post is listed first, and the landing page shows the latest four.
- Categories show as tags on the News page and the landing page. Use one, and two at the most, so the list stays easy to scan. The existing ones are
Announcements,Events,Trainings, andReleases. Reuse them where you can so filtering stays tidy. - Description is what readers see in the list, so keep it short.
- Any existing post under
posts/makes a good starting point. Copy its folder, rename it, and replace the content.
By default, code in a post is shown in a plain code block (```r) and is not run, so the site builds without R. If a post needs to show real results such as tables or plots:
- Write the code as
{r}chunks and addfreeze: trueto the post header. - Install R and the packages the code uses, then render the post once on your computer:
quarto render posts/<post-id>/index.qmd. This runs the code and saves the results in the_freeze/folder. - Commit the new files in
_freeze/together with the post, and include them in your pull request.
Render the post first with quarto render, then run quarto preview to check how it looks. Preview alone only renders a page when you open it, so it can leave _freeze/ empty. Check that the post has a folder under _freeze/ before you commit.
The build on GitHub has no R, so it reads the saved results from _freeze/. Without those files the build fails. If you change the code or text of such a post later, render it again and commit the updated _freeze/ files.
The Products page is drawn from products/*.yml. Each file is a list of sections, and each section is either a group of cards or a row of pill links. Cards group related packages into a family, with one link per package.
- category: Interactive exploration
description: Tools for interactive clinical data exploration and visualization.
families:
- title: teal
description: One sentence about the family.
image: https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/SVG/teal.svg
links:
- { text: teal, url: "https://pharmaverse.github.io/teal/" }
- { text: teal.modules.clinical, url: "https://insightsengineering.github.io/teal.modules.clinical/" }- To add a package to an existing family, add one line under its
links. - To add a family, add a block under
families. Keep each section to four cards so the grid stays even, and keep a card to about four links. - To add a row of pills (for catalogs and examples), use
links:directly under the section instead offamilies:. imageis optional. A card without one gets a placeholder hexagon with its first letter. Hex stickers come from the hex-stickers repository, so reference them from there instead of copying files into this repo.- To also show a family on the landing page, add
featured: trueto it. The landing page draws one card for each featured family, using its description and first link, so keep the description meaningful. Four to six featured families work well. - Check that every link opens before you submit.
- Keep each pull request focused on one change.
- Include a screenshot or the preview link when you change how a page looks.
- Do not commit the
_site/or.quarto/folders. Do commit the_freeze/folder when a post runs R code.
Merging to main builds the site and publishes it to GitHub Pages. Pull requests get their own preview and do not affect the live site.