Skip to content

Commit d12b7e7

Browse files
Pkgdown setup
1 parent 65fca36 commit d12b7e7

8 files changed

Lines changed: 249 additions & 323 deletions

File tree

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
^\.github$
22
^.*\.Rproj$
33
^\.Rproj\.user$
4+
^_pkgdown\.yml$
5+
^docs$
6+
^pkgdown$

.github/workflows/pkgdown.yaml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ site-library/
5151

5252
# Local files for development
5353
local/
54+
docs

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ Suggests:
3030
testthat (>= 3.0.0)
3131
Config/testthat/edition: 3
3232
LinkingTo: Rcpp, RNifti, RcppArmadillo
33+
URL: https://uncdependlab.github.io/BrainGnomes/

_pkgdown.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
url: https://uncdependlab.github.io/BrainGnomes/
2+
template:
3+
bootstrap: 5
4+
bootswatch: spacelab
5+

man/BrainGnomes-package.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/BrainGnomes_Tutorial_Vignette.Rmd

Lines changed: 117 additions & 323 deletions
Large diffs are not rendered by default.

vignettes/building_containers.Rmd

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: "BrainGnomes: Building Singularity Containers"
3+
author: "Michael Hallquist"
4+
date: "29 Jul 2025"
5+
output:
6+
rmarkdown::html_vignette:
7+
toc: true
8+
vignette: >
9+
%\VignetteIndexEntry{BrainGnomes Building Containers}
10+
%\VignetteEncoding{UTF-8}
11+
%\VignetteEngine{knitr::rmarkdown}
12+
editor_options:
13+
chunk_output_type: console
14+
---
15+
16+
# Running singularity
17+
18+
On most HPC systems, Singularity is not available on login nodes. Thus, to build containers, you must enter an interactive compute session and build there. For example, on SLURM, for an 8-hour session with 32 GB RAM, use:
19+
20+
```
21+
srun -t 8:00:00 --mem=32gb -p interact -N 1 -n 4 --pty /bin/bash
22+
```
23+
24+
Now that you're in that session, you can proceed with building containers needed for BrainGnomes
25+
26+
# Heudiconv
27+
28+
```
29+
singularity pull docker://nipy/heudiconv:latest
30+
```
31+
32+
More details here: https://heudiconv.readthedocs.io/en/latest/installation.html
33+
34+
# fmriprep
35+
36+
Fill in a version, such as 25.1.3
37+
38+
```
39+
singularity build /proj/hng/software/containers/fmriprep-<version>.simg docker://nipreps/fmriprep:<version>
40+
```
41+
42+
# MRIQC
43+
44+
```
45+
singularity build /proj/mnhallqlab/mriqc-latest.simg docker://nipreps/mriqc:latest
46+
```
47+
48+
# fmripost-aroma (ICA-AROMA)
49+
50+
```
51+
singularity build /proj/hng/software/containers/aroma-latest.simg docker://nipreps/fmripost-aroma:main
52+
```
53+
54+
Details: https://github.com/nipreps/fmripost-aroma?tab=readme-ov-file#installation
55+
56+
# AFNI
57+
58+
Not currently used, but if you want it!
59+
60+
```
61+
singularity build /proj/hng/software/containers/afni-latest.simg docker://afni/afni_make_build
62+
```
63+
64+
# BIDS-validator
65+
66+
Not quite as easy
67+
68+
```
69+
module load node
70+
npm install -g deno
71+
deno compile -ERWN -o bids-validator jsr:@bids/validator
72+
```

0 commit comments

Comments
 (0)