Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stineb authored Mar 28, 2024
0 parents commit 1ac7065
Show file tree
Hide file tree
Showing 15 changed files with 1,067 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# docs and unit tests
^\.github$
^_pkgdown\.yml$
^pkgdown$
^docs$
^data-raw$
^vignettes_add$

# R-markdown files in the root folder.
^LICENSE.*$
^CONDUCT\.md$
^NEWS\.md$
^README\.md$
^contact\.md$
^cran-comments\.md$
^review-notes\.md$

# R Stuff
^.*\.Rproj$
^.*\.Renviron$
^\.Rproj\.user$
^\.httr-oauth$
^.*-logo\..*$
^codemeta\.json$
46 changes: 46 additions & 0 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: Ubuntu-latest
timeout-minutes: 15
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: false
extra-packages: any::pkgdown, any::devtools, local::.
needs: website

- name: Build site
run: devtools::install_github("computationales/GECO_documentation_template"); pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# History files
.Rhistory
.Rapp.history

# Session Data files
.RData

# 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
16 changes: 16 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Package: RTemplate
Title: Your project
Version: 0.1
Authors@R:
person(
given = "John",
family = "Doe",
email = "[email protected]",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0000-0000-0000")
)
Description: What the package does (one paragraph).
License: AGPL-3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Loading

0 comments on commit 1ac7065

Please sign in to comment.