Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
StatsRhian committed May 8, 2024
1 parent d1ad297 commit fa11514
Show file tree
Hide file tree
Showing 84 changed files with 26,100 additions and 2 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
32 changes: 32 additions & 0 deletions .github/workflows/connect-publish-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Connect Publish (dev)"
on:
push:
branches: [main]

jobs:
connect-publish:
name: connect-publish-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-renv@v2

- name: Publish to RStudio Connect (and render)
shell: bash
env:
QUARTO_PRINT_STACK: true
CONNECT_SERVER: ${{ secrets.RSCONNECT_URL }}
CONNECT_API_KEY: ${{ secrets.RSCONNECT_API_KEY }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Quarto GHA Workflow Runner"
quarto publish --id a59059a0-c72a-4cd8-8843-5a4929821e2f --no-browser
32 changes: 32 additions & 0 deletions .github/workflows/connect-publish-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Connect Publish (prod)"
on:
release:
types: [published]

jobs:
connect-publish:
name: connect-publish-prod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-renv@v2

- name: Publish to RStudio Connect (and render)
shell: bash
env:
QUARTO_PRINT_STACK: true
CONNECT_SERVER: ${{ secrets.RSCONNECT_URL }}
CONNECT_API_KEY: ${{ secrets.RSCONNECT_API_KEY }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Quarto GHA Workflow Runner"
quarto publish --id e0c5e8f2-c27f-4b25-ac3a-4659e9eff53f --no-browser
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

# RStudio Connect folder
rsconnect/

# Quarto
.quarto/
_site/
/.quarto/
Loading

0 comments on commit fa11514

Please sign in to comment.