Skip to content

Commit 260211b

Browse files
authored
Merge pull request #4 from thomvolker/main
first few changes to test data downloading
2 parents 84a8392 + 46585ec commit 260211b

File tree

14 files changed

+284
-103
lines changed

14 files changed

+284
-103
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v5
33+
- name: Build with Jekyll
34+
uses: actions/jekyll-build-pages@v1
35+
with:
36+
source: ./
37+
destination: ./_site
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
41+
# Deployment job
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
6+
/.quarto/

TOPIC2/page1.qmd

Lines changed: 0 additions & 23 deletions
This file was deleted.

TOPIC2/page2.qmd

Lines changed: 0 additions & 23 deletions
This file was deleted.

TOPIC2/page3.qmd

Lines changed: 0 additions & 23 deletions
This file was deleted.

_quarto.yml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Begin Project
22
project:
33
type: website
4-
pre-render: wget -nc https://raw.githubusercontent.com/lmu-osc/branding-resources/refs/heads/main/lmu-osc-custom.scss
4+
pre-render: wget -nc https://raw.githubusercontent.com/lmu-osc/branding-resources/refs/heads/main/lmu-osc-custom.scss --no-check-certificate
55
post-render: rm lmu-osc-custom.scss
66
# End Project
77

88

99
# Begin Website
1010
website:
11-
title: "TUTORIAL TITLE HERE"
12-
page-footer:
11+
title: "Generating and evaluating synthetic data in R"
12+
page-footer:
1313
center: "Copyright, 2024 Open Science Center at LMU Munich"
1414
border: false
1515
search:
@@ -21,10 +21,10 @@ website:
2121
favicon: assets/LMU_OSC_favicon.jpg
2222
margin-header: |
2323
![](/assets/LMU_OSC_logo.svg){width="175"}
24-
25-
24+
25+
2626
navbar:
27-
right:
27+
right:
2828
- about.qmd
2929
left:
3030
- href: index.qmd
@@ -38,37 +38,29 @@ website:
3838
url: https://github.com/lmu-osc/REPO-NAME-HERE/issues
3939
- icon: house-heart
4040
url: https://www.osc.uni-muenchen.de/index.html
41-
42-
41+
42+
4343
sidebar:
4444
style: "docked"
4545
contents:
4646
- text: "Overview"
4747
href: index.qmd
48-
- section: "TOPIC 1"
49-
contents:
50-
- href: TOPIC1/page1.qmd
51-
text: "TOPIC1 Page1 Title"
52-
- href: TOPIC1/page2.qmd
53-
text: "TOPIC1 Page2 Title"
54-
- section: "TOPIC 2"
55-
contents:
56-
- href: TOPIC2/page1.qmd
57-
text: "TOPIC2 Page1 Title"
58-
- href: TOPIC2/page2.qmd
59-
text: "TOPIC2 Page2 Title"
60-
- href: TOPIC2/page3.qmd
61-
text: "TOPIC2 Page3 Title"
48+
- text: "Statistical disclosure control"
49+
href: sdc/
50+
- text: "Generating synthetic data"
51+
href: generation/
52+
- text: "Evaluating synthetic data quality"
53+
href: evaluation/
6254
# End Website
6355

6456

6557
# Begin Format
6658
format:
6759
html:
68-
theme:
60+
theme:
6961
- cosmo
7062
- lmu-osc-custom.scss
71-
css:
63+
css:
7264
- https://raw.githubusercontent.com/lmu-osc/branding-resources/refs/heads/main/lmu-osc-styles.css
7365
toc: true
7466
fontsize: 13pt

data/boys.RDS

11.2 KB
Binary file not shown.

data/datascript.R

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
set.seed(123)
3+
4+
data <- mice::boys
5+
meth <- mice::make.method(data)
6+
meth["bmi"] <- "~I(wgt/(hgt/100)^2)"
7+
predmat <- mice::make.predictorMatrix(data)
8+
predmat[c("hgt", "wgt"), "bmi"] <- 0
9+
10+
imp <- mice::mice(
11+
data,
12+
method = meth,
13+
predictorMatrix = predmat,
14+
maxit = 20,
15+
m = 1
16+
)
17+
18+
data <- mice::complete(imp)
19+
20+
saveRDS(data, "data/boys.RDS")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Page Title Here"
33
---
44

5+
56
The headers below cause the table of contents/dropdown on the right to be visible.
67

78
# Level One Header
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ The headers below cause the table of contents/dropdown on the right to be visibl
2020

2121
# Level One Again
2222

23-
## Level Two
23+
## Level Two

0 commit comments

Comments
 (0)