Write your slides in RMarkdown, a format that combines the core syntax of Markdown with embedded code chunks that are executed.