How to make an interactive flow chart in a R markdown file?

Hi.

I have a R markdown file, and i hoping to code an interactive flow chart in it, which guides a user through a multi step process, with quite a few choices.

I'd initially thought of usic a static flow chart which has all the options detailed, but then i thought, and interactive one where people work through it step by step, going down the path they require, would be better.

Does anyone know how to code this? It would need to be in a rmarkdown file.

Hi, some examples: 35 Diagrams and charts | The Epidemiologist R Handbook (epirhandbook.com). Some are interactive.