Skip to content

Commit 494f73a

Browse files
author
Sarah Teichman
committed
basics for software page
1 parent 903cc81 commit 494f73a

10 files changed

Lines changed: 176 additions & 0 deletions

File tree

.Rbuildignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
3+
^LICENSE\.md$
4+
^doc$
5+
^Meta$

.github/workflows/pkgdown.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
13+
14+
jobs:
15+
pkgdown:
16+
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: r-lib/actions/setup-pandoc@v2
28+
29+
- uses: r-lib/actions/setup-r@v2
30+
with:
31+
use-public-rspm: true
32+
33+
- uses: r-lib/actions/setup-r-dependencies@v2
34+
with:
35+
extra-packages: any::pkgdown, local::.
36+
needs: website
37+
38+
- name: Build site
39+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
40+
shell: Rscript {0}
41+
42+
- name: Deploy to GitHub pages 🚀
43+
if: github.event_name != 'pull_request'
44+
uses: JamesIves/github-pages-deploy-action@v4.5.0
45+
with:
46+
clean: false
47+
branch: gh-pages
48+
folder: docs

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.DS_Store
2+
inst/doc
3+
.Rproj.user
4+
/doc/
5+
/Meta/
6+
.Rhistory

DESCRIPTION

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Package: software
2+
Type: Package
3+
Title: StatDivLab Software Page
4+
Version: 0.0.0.9000
5+
Authors@R:
6+
as.person(c(
7+
"Amy Willis <adwillis@uw.edu> [aut, cre]",
8+
"Sarah Teichman [aut]"
9+
))
10+
Description: This is a way to host the software page for the Statistical Diversity Lab.
11+
License: MIT + file LICENSE
12+
Encoding: UTF-8
13+
LazyData: true
14+
RoxygenNote: 7.3.2
15+
Depends: DiagrammeR
16+
Suggests:
17+
knitr,
18+
rmarkdown
19+
VignetteBuilder: knitr
20+
URL: https://statdivlab.github.io/software.html, https://statdivlab.github.io/software/

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
YEAR: 2025
2+
COPYRIGHT HOLDER: software authors

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2025 software authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated by roxygen2: do not edit by hand
2+

software.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

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*.R

vignettes/software_page.Rmd

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "StatDivLab Software"
3+
output: rmarkdown::html_vignette
4+
vignette: >
5+
%\VignetteIndexEntry{StatDivLab Software}
6+
%\VignetteEngine{knitr::rmarkdown}
7+
%\VignetteEncoding{UTF-8}
8+
---
9+
10+
## Software!!
11+
12+
Something about us
13+
14+
Table with all software
15+
16+
## Flowchart
17+
18+
```{r, echo = FALSE}
19+
library(DiagrammeR)
20+
21+
grViz("
22+
digraph flowchart {
23+
graph [layout = dot, rankdir = TB]
24+
25+
node [style=filled, fillcolor=white]
26+
27+
// Define shapes
28+
node [shape = none]
29+
Q1 [label = 'I care about...']
30+
Q2 [label = 'What do you want to estimate?']
31+
32+
node [shape = ellipse]
33+
A1 [label = 'diversity estimation']
34+
A2 [label = 'differential abundance analysis']
35+
A3 [label = 'phylogenetics']
36+
A4 [label = 'other microbiome questions']
37+
A5 [label = 'other statistical tools']
38+
A6 [label = 'Richness']
39+
A7 [label = <&alpha;/&beta; Diversity>]
40+
41+
node [shape = box]
42+
S1 [label = 'breakaway', URL=\"https://github.com/adw96/breakaway\"]
43+
S2 [label = 'DivNet', URL=\"https://github.com/adw96/DivNet\"]
44+
45+
// Connect nodes
46+
Q1 -> A1
47+
Q1 -> A2
48+
Q1 -> A3
49+
A1 -> Q2
50+
Q2 -> A4
51+
Q2 -> A5
52+
A4 -> S1
53+
A5 -> S2
54+
}
55+
")
56+
57+
```

0 commit comments

Comments
 (0)