PAaSO/apps/shinyDAG-1.0.0/www/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-19 09:27:27 +02:00
..
classic-confounding.png transfer from old repo 2026-08-19 09:27:27 +02:00
classic-confounding.rds transfer from old repo 2026-08-19 09:27:27 +02:00
differential-loss-to-follow-up.png transfer from old repo 2026-08-19 09:27:27 +02:00
differential-loss-to-follow-up.rds transfer from old repo 2026-08-19 09:27:27 +02:00
examples.yml transfer from old repo 2026-08-19 09:27:27 +02:00
mediator-with-confounding.png transfer from old repo 2026-08-19 09:27:27 +02:00
mediator-with-confounding.rds transfer from old repo 2026-08-19 09:27:27 +02:00
README.md transfer from old repo 2026-08-19 09:27:27 +02:00
selection-bias.png transfer from old repo 2026-08-19 09:27:27 +02:00
selection-bias.rds transfer from old repo 2026-08-19 09:27:27 +02:00

Creating Examples

To create a new example, run ShinyDAG locally using the shinydag dev docker file.

Set up your example and then save it as a bookmark.

Note the URL created by shiny for the bookmark, it should end with

?_state_id_=9d49cb0ba72b00f2

Navigate to the shiny_bookmarks folder and find the folder with the bookmark token, e.g. 9d49cb0ba72b00f2.

Copy values.rds to www/examples and give the file a descriptive name. These names are used for the shiny inputs, so keep the characters sane (and no spaces).

Also, save the DAG image into www/examples with the same name (not required but a good idea).

Finally, add the description text to www/examples/examples.yml. Here's an example template that you can copy. Note that if you can use HTML in the description, but it needs to be valid or it will cause problems on the page.

- name: Classic Confounding
  description: >
    This is a description of classic confounding. Descriptions may include
    <strong>HTML</strong>.
  file: classic-confounding.rds
  image: classic-confounding.png