Skip to content

Commit 2ef84ff

Browse files
20251221 - convert from rmarkdown to quarto website
1 parent feab3b7 commit 2ef84ff

42 files changed

Lines changed: 1189 additions & 1072 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy_rmarkdown.yml

Lines changed: 44 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,73 +4,68 @@
44
# 2. Create a secret labeled `EMAIL` in the repo (Settings -> Security -> Secrets -> Actions), and copy the PAT for `EMAIL` into the secret labeled `EMAIL`
55

66
on:
7-
push:
8-
branches:
9-
- main
7+
push:
8+
branches:
9+
- main
1010

11-
name: deploywebsite
11+
name: Quarto Publish
1212

1313
jobs:
14-
rmarkdown:
15-
name: Render-Website
14+
build-deploy:
1615
runs-on: ubuntu-latest
17-
env:
18-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
permissions:
17+
contents: write
1918
steps:
20-
- name: Checkout Repository
21-
uses: actions/checkout@v4 # update
22-
23-
- name: Setup R
24-
uses: r-lib/actions/setup-r@v2 # update
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Quarto
23+
uses: quarto-dev/quarto-actions/setup@v2
2524

25+
- name: Setup Python and Jupyter
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
29+
- run: pip install jupyter
30+
- run: pip install -r requirements.txt
31+
32+
- name: Install R
33+
uses: r-lib/actions/setup-r@v2
34+
2635
- name: Session info
2736
run: Rscript -e 'sessionInfo()'
28-
37+
2938
- name: Setup pandoc
3039
uses: r-lib/actions/setup-pandoc@v2 # update
31-
40+
3241
- name: Install libcurl on Linux
3342
if: runner.os == 'Linux'
3443
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev
35-
44+
3645
- name: Install package dependencies
3746
uses: r-lib/actions/setup-r-dependencies@v2 # update
38-
47+
3948
- name: Install remote packages
4049
run: |
4150
Rscript -e "install.packages('rstan', repos = c('https://mc-stan.org/r-packages/', getOption('repos')))"
42-
43-
- name: Render blog
44-
run: Rscript -e 'rmarkdown::render_site()'
45-
46-
- uses: actions/upload-artifact@v4 # update
51+
# Rscript -e 'remotes::install_github("DevPsyLab/petersenlab")'
52+
53+
- name: Render and Publish
54+
uses: quarto-dev/quarto-actions/publish@v2
55+
with:
56+
target: gh-pages
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: List files in workspace
61+
if: always()
62+
run: |
63+
ls -lh
64+
find . -type f
65+
66+
- name: Archive production artifacts
67+
if: always() # ensures it runs even if previous steps fail
68+
uses: actions/upload-artifact@v4 # update
4769
with:
4870
name: site
4971
path: _site/
50-
51-
# Need to first create an empty gh-pages branch
52-
# see https://pkgdown.r-lib.org/reference/deploy_site_github.html
53-
# and also add secrets for a GH_PAT and EMAIL to the repository
54-
# gh-action from Cecilapp/GitHub-Pages-deploy
55-
checkout-and-deploy:
56-
runs-on: ubuntu-latest
57-
needs: rmarkdown
58-
steps:
59-
- name: Checkout
60-
uses: actions/checkout@v4 # update
61-
62-
- name: Download artifact
63-
uses: actions/download-artifact@v4 # update
64-
with:
65-
# Artifact name
66-
name: site # optional
67-
# Destination path
68-
path: _site # optional
69-
70-
- name: Deploy to GitHub Pages
71-
uses: Cecilapp/GitHub-Pages-deploy@v3
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
with:
75-
build_dir: _site/ # "_site/" by default
76-
email: ${{ secrets.EMAIL }} # must be a verified email

R.Rmd renamed to R.qmd

Lines changed: 168 additions & 135 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Data Analysis Guides
22

33
This is the code that creates the Data Analysis Guides for the Developmental Psychopathology Lab.
4-
The Data Analysis Guides are located here: **https://devpsylab.github.io/DataAnalysis**
4+
The Data Analysis Guides are located here: **<https://devpsylab.github.io/DataAnalysis>**
55

66
# License
77

@@ -12,6 +12,6 @@ This work is licensed under a
1212

1313
[![CC BY 4.0][cc-by-image]][cc-by]
1414

15-
[cc-by]: https://creativecommons.org/licenses/by/4.0/
16-
[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png
17-
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
15+
[cc-by]: <https://creativecommons.org/licenses/by/4.0/>
16+
[cc-by-image]: <https://i.creativecommons.org/l/by/4.0/88x31.png>
17+
[cc-by-shield]: <https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg>

SPSS.Rmd renamed to SPSS.qmd

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22
title: "SPSS"
33
---
44

5-
```{r setup, include = FALSE}
6-
knitr::opts_chunk$set(
7-
echo = TRUE,
8-
error = TRUE,
9-
comment = "")
10-
```
11-
125
# When to use `SPSS` {#whenSPSS}
136

14-
We use [R](R.html) for almost all data analysis.
15-
However, [R](R.html) is code-based and has a steep learning curve.
16-
As a result, undergraduate students in the lab most often use `SPSS` or [`jamovi`](jamovi.html) for their research projects (e.g., [Honors projects](https://devpsylab.github.io/LabWiki/honors.html) and [SROP projects](https://devpsylab.github.io/LabWiki/expectations-SROP.html)), because `SPSS` and [`jamovi`](jamovi.html) have a point-and-click interface.
7+
We use [R](R.qmd) for almost all data analysis.
8+
However, [R](R.qmd) is code-based and has a steep learning curve.
9+
As a result, undergraduate students in the lab most often use `SPSS` or [`jamovi`](jamovi.qmd) for their research projects (e.g., [Honors projects](https://devpsylab.github.io/LabWiki/honors.html) and [SROP projects](https://devpsylab.github.io/LabWiki/expectations-SROP.html)), because `SPSS` and [`jamovi`](jamovi.qmd) have a point-and-click interface.
1710

1811
# Creating a `SPSS` Syntax File to Import a `.csv` Data File {#import}
1912

@@ -74,9 +67,9 @@ Add any data management/transformations at the end of your `import.sps` file (af
7467

7568
# Recode Variables {#recode}
7669

77-
https://stats.oarc.ucla.edu/spss/modules/creating-and-recoding-variables/ (archived at https://perma.cc/YJ2H-SRZM)
70+
<https://stats.oarc.ucla.edu/spss/modules/creating-and-recoding-variables/> (archived at <https://perma.cc/YJ2H-SRZM>)
7871

79-
https://wlm.userweb.mwn.de/SPSS/wlmsreco.htm (archived at https://perma.cc/G4FN-PYPV)
72+
<https://wlm.userweb.mwn.de/SPSS/wlmsreco.htm> (archived at <https://perma.cc/G4FN-PYPV>)
8073

8174
## Average Across Variables {#averageVars}
8275

@@ -241,8 +234,8 @@ PROCESS
241234
```
242235
1. Create plot of interaction
243236
- see McCabe et al. (2018) and following links:
244-
- https://github.com/connorjmccabe/InterActive
245-
- https://connorjmccabe.shinyapps.io/interactive/ (archived at https://perma.cc/93G6-ALDP)
237+
- <https://github.com/connorjmccabe/InterActive>
238+
- <https://connorjmccabe.shinyapps.io/interactive/> (archived at <https://perma.cc/93G6-ALDP>)
246239

247240
# Best Practices {#bestPractices}
248241

_quarto.yml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
project:
2+
type: website
3+
4+
website:
5+
title: "Data Analysis Guides for the Developmental Psychopathology Lab"
6+
repo-url: https://github.com/DevPsyLab/DataAnalysis
7+
repo-actions: [edit, source, issue]
8+
google-analytics: G-TYR0QMREEW
9+
sidebar:
10+
style: "floating"
11+
contents:
12+
- text: "ABCD Data"
13+
href: abcdData.qmd
14+
- text: "Bayesian Analysis"
15+
href: bayesian.qmd
16+
- text: "Data Management"
17+
href: dataManagement.qmd
18+
- text: "Developmental Scaling"
19+
href: developmentalScaling.qmd
20+
- text: "Directed Acyclic Graphs"
21+
href: dags.qmd
22+
- text: "Electroencephalography/Event-Related Potentials"
23+
href: eegERP.qmd
24+
- text: "Exploratory Data Analysis"
25+
href: eda.qmd
26+
- text: "Factor Analysis"
27+
href: factorAnalysis.qmd
28+
- text: "Figures"
29+
href: figures.qmd
30+
- text: "Git, GitLab, and GitHub"
31+
href: git.qmd
32+
- text: "Hierarchical Linear Modeling"
33+
href: hlm.qmd
34+
- text: "High-Performance Computing"
35+
href: hpc.qmd
36+
- text: "Item Response Theory"
37+
href: irt.qmd
38+
- text: "jamovi"
39+
href: jamovi.qmd
40+
- text: "JATOS (Just Another Tool for Online Studies)"
41+
href: jatos.qmd
42+
- text: "jsPsych"
43+
href: jsPsych.qmd
44+
- text: "LAMP (Linux, Apache, MySQL, PHP)"
45+
href: lamp.qmd
46+
- text: "Longitudinal Data Analysis"
47+
href: lda.qmd
48+
- text: "Markdown"
49+
href: markdown.qmd
50+
- text: "Mediation"
51+
href: sem.qmd#mediation
52+
- text: "Moderation/Interaction"
53+
href: regression.qmd#moderation
54+
- text: "Mplus"
55+
href: mplus.qmd
56+
- text: "Multiple Imputation"
57+
href: multipleImputation.qmd
58+
- text: "Open Science Framework"
59+
href: osf.qmd
60+
- text: "Principal Component Analysis"
61+
href: pca.qmd
62+
- text: "Python"
63+
href: https://devpsylab.github.io/pythonDataAnalysisGuides
64+
- text: "R"
65+
href: R.qmd
66+
- text: "Regression"
67+
href: regression.qmd
68+
- text: "SPSS"
69+
href: SPSS.qmd
70+
- text: "Statistics"
71+
href: statistics.qmd
72+
- text: "Structural Equation Modeling"
73+
href: sem.qmd
74+
navbar:
75+
logo: images/labLogo.png
76+
search: true
77+
tools:
78+
- icon: github
79+
menu:
80+
- text: "Source Code"
81+
href: https://github.com/DevPsyLab/DataAnalysis
82+
- text: "Report a Bug"
83+
href: https://github.com/DevPsyLab/DataAnalysis/issues/new
84+
- icon: twitter
85+
href: https://twitter.com/devpsylab
86+
- icon: facebook
87+
href: https://www.facebook.com/DevPsyLab
88+
- icon: instagram
89+
href: https://www.instagram.com/dev_psy_lab
90+
left:
91+
- text: "Datasets"
92+
menu:
93+
- text: "ABCD Study Data"
94+
href: abcdData.qmd
95+
- text: "Analysis Techniques"
96+
menu:
97+
- text: "Bayesian Analysis"
98+
href: bayesian.qmd
99+
- text: "Data Management"
100+
href: dataManagement.qmd
101+
#- text: "Developmental Scaling"
102+
# href: developmentalScaling.qmd
103+
- text: "Directed Acyclic Graphs"
104+
href: dags.qmd
105+
- text: "Electroencephalography/Event-Related Potentials"
106+
href: eegERP.qmd
107+
- text: "Exploratory Data Analysis"
108+
href: eda.qmd
109+
- text: "Factor Analysis"
110+
href: factorAnalysis.qmd
111+
- text: "Figures"
112+
href: figures.qmd
113+
- text: "Hierarchical Linear Modeling"
114+
href: hlm.qmd
115+
- text: "Item Response Theory"
116+
href: irt.qmd
117+
- text: "Longitudinal Data Analysis"
118+
href: lda.qmd
119+
- text: "Mediation"
120+
href: sem.qmd#mediation
121+
- text: "Moderation/Interaction"
122+
href: regression.qmd#moderation
123+
- text: "Multiple Imputation"
124+
href: multipleImputation.qmd
125+
- text: "Principal Component Analysis"
126+
href: pca.qmd
127+
- text: "Regression"
128+
href: regression.qmd
129+
- text: "Statistics"
130+
href: statistics.qmd
131+
- text: "Structural Equation Modeling"
132+
href: sem.qmd
133+
- text: "Software/Frameworks"
134+
menu:
135+
- text: "Git, GitLab, and GitHub"
136+
href: git.qmd
137+
- text: "High-Performance Computing Cluster"
138+
href: hpc.qmd
139+
- text: "jamovi"
140+
href: jamovi.qmd
141+
- text: "JATOS (Just Another Tool for Online Studies)"
142+
href: jatos.qmd
143+
- text: "jsPsych"
144+
href: jsPsych.qmd
145+
- text: "LAMP (Linux, Apache, MySQL, PHP)"
146+
href: lamp.qmd
147+
- text: "Markdown"
148+
href: markdown.qmd
149+
- text: "Mplus"
150+
href: mplus.qmd
151+
- text: "Open Science Framework"
152+
href: osf.qmd
153+
- text: "Python"
154+
href: https://devpsylab.github.io/pythonDataAnalysisGuides
155+
- text: "R"
156+
href: R.qmd
157+
- text: "SPSS"
158+
href: SPSS.qmd
159+
- text: "About"
160+
href: about.qmd
161+
right:
162+
- text: "Lab Wiki"
163+
href: https://devpsylab.github.io/LabWiki
164+
- text: "Lab Website"
165+
href: https://developmental-psychopathology.lab.uiowa.edu
166+
167+
format:
168+
html:
169+
highlight-style: a11y
170+
theme: cosmo
171+
css: ["styles.css", "includes/custom.css", "font/css/roboto.css"]
172+
toc: true
173+
toc-depth: 5
174+
toc-title: Contents
175+
toc-location: right
176+
execute:
177+
error: true
178+
warning: false
179+
code-link: true
180+
number-sections: true
181+
code-fold: show
182+
anchor-sections: true
183+
df-print: paged
184+
code-tools:
185+
source: true
186+
toggle: true
187+
link-external-newwindow: true
188+
#include-in-header:
189+
# - "includes/google_analytics.html"
190+
include-after-body:
191+
- "includes/footer.html"
192+
license: CC BY
193+
author-meta: "Isaac T. Petersen"
194+
date-meta: today

0 commit comments

Comments
 (0)