Skip to content

Commit a4b11b6

Browse files
committed
add website skeleton
1 parent 2c4b8a4 commit a4b11b6

File tree

8 files changed

+111
-0
lines changed

8 files changed

+111
-0
lines changed

_quarto.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
project:
2+
type: website
3+
4+
website:
5+
title: "integrating SQL into R analytical workflows using duckDB & dbplyr"
6+
7+
navbar:
8+
left:
9+
- href: index.qmd
10+
text: Home
11+
- href: about.qmd
12+
text: "About RDS"
13+
tools:
14+
- icon: github
15+
menu:
16+
- text: Website Code
17+
url: https://github.com/brunj7/intro-database-r
18+
- text: Report an issue
19+
url: https://github.com/brunj7/intro-database-r/issues
20+
21+
22+
format:
23+
html:
24+
theme:
25+
- spacelab
26+
- rdsstyles.scss
27+
css: styles.css
28+
toc: true
29+
include-after-body: footer.html
30+
31+
execute:
32+
freeze: auto
33+

about.qmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "About RDS"
3+
---
4+
5+
[Research Data Services (RDS)](https://www.library.ucsb.edu/research-data-services) helps UCSB researchers manage and preserve their research data through:
6+
7+
- Consultations
8+
- Long-term engagements
9+
- Instructional workshops.
10+
11+
Our team offers support across the research data lifecycle, from pre-project planning to post-project archival, connecting researchers with both locally- and externally-provided curation services. Our goal is to ensure that all research data is well-described, FAIR (Findable, Accessible, Interoperable, Reusable), and sustainably preservable, and that researchers receive scholarly credit for sharing and publishing data.
12+
13+
Contact us if you have any questions: [rds\@library.ucsb.edu](mailto:rds@library.ucsb.edu){.email}

footer.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
<p><hr /></p>
3+
<p align="center"><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a></p>
4+
<p align="center"><a href="https://www.library.ucsb.edu/research-data-services"><img alt="UCSB logo" style="border-width:0" src="img/ucsb-primary-wordmark.png" width="250px" align="center" /></a></p>
5+
</div>

img/ucsb-primary-wordmark.png

23.4 KB
Loading

index.qmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Integrating SQL into R analytical workflows using duckDB & dbplyr"
3+
---
4+
5+
## Slides
6+
7+
- Why consider a database
8+
- Example of the birds dataset with multiple csv files and relationships
9+
- Pros & Cons of databases
10+
- Server vs personal database
11+
- dbplyr to connect to the R world
12+
13+
## Hands-on
14+
15+
- How to connect to a database from `R`
16+
- How to query a database using `dbplyr`
17+
- How to see the SQL code behind a tidyverse workflow
18+
- How to directly use SQL from R
19+
20+
Wrap-up
21+
22+
23+

intro-database-r.Rproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX

rdsstyles.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*-- scss:defaults --*/
2+
3+
// Colors
4+
$navy: #003660;
5+
$gold: #FEBC11;
6+
$gray: #111517;
7+
$light-gray: #DCE1E5;
8+
$white: #FFFFFF;
9+
$sea-green: #09847A;
10+
$coral: #EF5645;
11+
$sandstone: #C9BF9D;
12+
$clay: #faf8f4;
13+
$mist: #9CBEBE;
14+
15+
// Base document colors
16+
$navbar-bg: $sea-green; // navbar
17+
$navbar-fg: $white; // navbar foreground elements
18+
$navbar-hl: $gold; // highlight color when hovering over navbar links
19+
$sidebar-bg: $clay; // navbar
20+
$body-bg: $clay; // page background
21+
$body-color: $gray; // page text
22+
$footer-bg: $navy; // footer
23+
$link-color: $coral; // hyperlinks

styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* css styles */

0 commit comments

Comments
 (0)