Skip to content

Commit

Permalink
add website skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
brunj7 committed Feb 27, 2024
1 parent 2c4b8a4 commit a4b11b6
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 0 deletions.
33 changes: 33 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
project:
type: website

website:
title: "integrating SQL into R analytical workflows using duckDB & dbplyr"

navbar:
left:
- href: index.qmd
text: Home
- href: about.qmd
text: "About RDS"
tools:
- icon: github
menu:
- text: Website Code
url: https://github.com/brunj7/intro-database-r
- text: Report an issue
url: https://github.com/brunj7/intro-database-r/issues


format:
html:
theme:
- spacelab
- rdsstyles.scss
css: styles.css
toc: true
include-after-body: footer.html

execute:
freeze: auto

13 changes: 13 additions & 0 deletions about.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "About RDS"
---

[Research Data Services (RDS)](https://www.library.ucsb.edu/research-data-services) helps UCSB researchers manage and preserve their research data through:

- Consultations
- Long-term engagements
- Instructional workshops.

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.

Contact us if you have any questions: [rds\@library.ucsb.edu](mailto:[email protected]){.email}
5 changes: 5 additions & 0 deletions footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div>
<p><hr /></p>
<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>
<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>
</div>
Binary file added img/ucsb-primary-wordmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "Integrating SQL into R analytical workflows using duckDB & dbplyr"
---

## Slides

- Why consider a database
- Example of the birds dataset with multiple csv files and relationships
- Pros & Cons of databases
- Server vs personal database
- dbplyr to connect to the R world

## Hands-on

- How to connect to a database from `R`
- How to query a database using `dbplyr`
- How to see the SQL code behind a tidyverse workflow
- How to directly use SQL from R

Wrap-up



13 changes: 13 additions & 0 deletions intro-database-r.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX
23 changes: 23 additions & 0 deletions rdsstyles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*-- scss:defaults --*/

// Colors
$navy: #003660;
$gold: #FEBC11;
$gray: #111517;
$light-gray: #DCE1E5;
$white: #FFFFFF;
$sea-green: #09847A;
$coral: #EF5645;
$sandstone: #C9BF9D;
$clay: #faf8f4;
$mist: #9CBEBE;

// Base document colors
$navbar-bg: $sea-green; // navbar
$navbar-fg: $white; // navbar foreground elements
$navbar-hl: $gold; // highlight color when hovering over navbar links
$sidebar-bg: $clay; // navbar
$body-bg: $clay; // page background
$body-color: $gray; // page text
$footer-bg: $navy; // footer
$link-color: $coral; // hyperlinks
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* css styles */

0 comments on commit a4b11b6

Please sign in to comment.