Last active
April 24, 2020 17:57
-
-
Save andrewheiss/af96fdc9b7f6deddb84d7c92406e3c4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── slide-adventures.Rproj | |
├── slides | |
│ └── test.Rmd | |
└── styles | |
└── test.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will stream/cast a specific Rmd file. The cast_from argument makes it so the server | |
# that is created is based in your root project directory, so it can see the CSS | |
xaringan::inf_mr("slides/test.Rmd", cast_from = ".") | |
# This will stream/cast the Rmd file you have currently open (the default if you don't specify | |
# a file path). The case_from argument has to be .. so that xaringan uses the root of the | |
# project, which is now a level back | |
xaringan::inf_mr(cast_from = "..") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.yellow { | |
background-color: #F5C710; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Example thing" | |
output: | |
xaringan::moon_reader: | |
lib_dir: libs | |
seal: false | |
css: ["default", "../styles/test.css"] | |
nature: | |
highlightStyle: github | |
highlightLines: true | |
countIncrementalSlides: false | |
--- | |
# This is a slide. | |
Some content here. | |
--- | |
class: yellow | |
# This is also a slide | |
It is yellow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment