fixed revealjs theme
This commit is contained in:
parent
1b84bf733e
commit
961f1c8e71
@ -6,7 +6,7 @@ execute:
|
|||||||
format:
|
format:
|
||||||
revealjs:
|
revealjs:
|
||||||
logo: images/psyteachr_hex.png
|
logo: images/psyteachr_hex.png
|
||||||
theme: [light, style.scss]
|
theme: [default, style.scss]
|
||||||
transition: none
|
transition: none
|
||||||
transition-speed: fast
|
transition-speed: fast
|
||||||
---
|
---
|
||||||
@ -200,8 +200,7 @@ All file references should use relative paths, not absolute paths.
|
|||||||
|
|
||||||
### 👎 Absolute Path
|
### 👎 Absolute Path
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| eval: false
|
|
||||||
dogs = open("C:\Documents\My Project\data\dogs.csv", "r")
|
dogs = open("C:\Documents\My Project\data\dogs.csv", "r")
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -209,8 +208,7 @@ dogs = open("C:\Documents\My Project\data\dogs.csv", "r")
|
|||||||
|
|
||||||
### 👍 Relative Path
|
### 👍 Relative Path
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| eval: false
|
|
||||||
dogs open("data/dogs.csv", "r")
|
dogs open("data/dogs.csv", "r")
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -286,8 +284,7 @@ When writing code, it is important to write it in such a way that it is easily u
|
|||||||
|
|
||||||
### With repeated numbers
|
### With repeated numbers
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| output: false
|
|
||||||
using DataFrames, Random
|
using DataFrames, Random
|
||||||
|
|
||||||
simdat = DataFrame(
|
simdat = DataFrame(
|
||||||
@ -301,8 +298,7 @@ simdat = DataFrame(
|
|||||||
|
|
||||||
### With parameter variables
|
### With parameter variables
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| output: false
|
|
||||||
n = 10
|
n = 10
|
||||||
|
|
||||||
simdat = DataFrame(
|
simdat = DataFrame(
|
||||||
@ -320,8 +316,7 @@ If you find yourself copying and pasting code more than twice, it's probably tim
|
|||||||
|
|
||||||
### With repeated code
|
### With repeated code
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| eval: false
|
|
||||||
using HypothesisTests
|
using HypothesisTests
|
||||||
|
|
||||||
dfA = filter(row -> row.group == "A", simdat)
|
dfA = filter(row -> row.group == "A", simdat)
|
||||||
@ -335,8 +330,7 @@ analysisB = OneSampleTTest(dfB.dv)
|
|||||||
|
|
||||||
### With a function
|
### With a function
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| eval: false
|
|
||||||
function subtest(data, level)
|
function subtest(data, level)
|
||||||
sub_df = filter(row -> row.group == level, data)
|
sub_df = filter(row -> row.group == level, data)
|
||||||
return OneSampleTTest(sub_df.dv)
|
return OneSampleTTest(sub_df.dv)
|
||||||
@ -349,8 +343,7 @@ analysisB = subtest(simdat, "B")
|
|||||||
## Unit Tests
|
## Unit Tests
|
||||||
|
|
||||||
|
|
||||||
```{julia}
|
``` julia
|
||||||
#| error: true
|
|
||||||
using Test
|
using Test
|
||||||
|
|
||||||
# check length of DataFrame is correct
|
# check length of DataFrame is correct
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*-- scss:defaults --*/
|
/*-- scss:defaults --*/
|
||||||
|
|
||||||
$body-bg: #222;
|
|
||||||
|
|
||||||
/*-- scss:rules --*/
|
/*-- scss:rules --*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user