Skip to content

Commit afcaa1b

Browse files
Add Tenzing analyis (#320)
* Initial tenzing commit * Initial WIP tenzing addition * Complete addition of contributor analysis
1 parent 7ed7436 commit afcaa1b

15 files changed

+568
-1
lines changed

.github/workflows/data-processing.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ jobs:
2727
python-version: ${{ env.PYTHON_VERSION }}
2828
cache: 'pip'
2929

30+
- uses: r-lib/actions/setup-r@v2
31+
- uses: r-lib/actions/setup-pandoc@v2
32+
- name: Install tenzing R dependencies
33+
run: Rscript -e 'install.packages(c("rmarkdown","ggplot2", "readxl", "dplyr", "googlesheets4", "stringr", "gridExtra", "glue", "tidygraph", "ggraph", "igraph"))'
34+
35+
- name: Run Tenzing analysis
36+
continue-on-error: true # Continue even if this step fails
37+
run: |
38+
Rscript -e "rmarkdown::render('scripts/contributor-analysis/contributor_analysis.rmd', output_format = 'md_document')"
39+
40+
- name: Move Tenzing analysis
41+
continue-on-error: true # Continue even if this step fails
42+
run: |
43+
mv scripts/contributor-analysis/contributor_analysis.md content/contributor-analysis/_index.md
44+
mv scripts/contributor-analysis/*.png content/contributor-analysis/
45+
3046
- name: Install Python dependencies
3147
run: python3 -m pip install -r ./requirements.txt
3248

@@ -69,7 +85,7 @@ jobs:
6985
run: python3 scripts/gs-cite/google_scholar.py
7086
env:
7187
SERPAPI: ${{ secrets.SERPAPI }}
72-
88+
7389
- name: Upload data artifact
7490
uses: actions/upload-artifact@v4
7591
with:
@@ -78,4 +94,5 @@ jobs:
7894
content/contributors/tenzing.md
7995
content/curated_resources/
8096
data/ # GA data
97+
content/contributor-analysis/
8198
retention-days: 1

.github/workflows/deploy.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ jobs:
5858
python scripts/download_ga_data.py
5959
fi
6060
61+
# Contributor analysis if needed
62+
- uses: r-lib/actions/setup-r@v2
63+
if: steps.download-artifact.outcome == 'failure'
64+
- uses: r-lib/actions/setup-pandoc@v2
65+
if: steps.download-artifact.outcome == 'failure'
66+
- name: Contributor analysis if needed
67+
if: steps.download-artifact.outcome == 'failure'
68+
continue-on-error: true
69+
run: |
70+
Rscript -e 'install.packages(c("rmarkdown", "ggplot2", "readxl", "dplyr", "googlesheets4", "stringr", "gridExtra", "glue", "tidygraph", "ggraph", "igraph"))'
71+
Rscript -e "rmarkdown::render('scripts/tenzing_analysis/contributor_analysis.rmd', output_format = 'md_document')"
72+
mv scripts/tenzing_analysis/contributor_analysis.md content/contributor-analysis/_index.md
73+
mv scripts/tenzing_analysis/*.png content/contributor-analysis/
74+
75+
76+
6177
- name: Setup Hugo
6278
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f
6379
with:
44.9 KB
Loading
72.3 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "FORRT Contributor Analyses"
3+
date: "12 April, 2025"
4+
type: plain_page
5+
output:
6+
md_document:
7+
preserve_yaml: true
8+
---
9+
10+
Currently, FORRT has 82 completed and ongoing projects with a total of
11+
651 contributors across these projects.
12+
There is an average (mean) of 2.06 contributions per person across all
13+
FORRT projects, and the average number of contributors per project is
14+
16.00. Team CRediT is actively working on formalizing and updating
15+
contributorship information.
16+
17+
![](Projects-Plot-Figure-1.png)
18+
19+
![](Role-Plot-Figure-1.png)
20+
21+
![](unnamed-chunk-1-1.png)
22+
23+
![](unnamed-chunk-2-1.png)
24+
25+
![](unnamed-chunk-3-1.png)
105 KB
Loading
124 KB
Loading
276 KB
Loading
44.9 KB
Loading
72.3 KB
Loading

0 commit comments

Comments
 (0)