Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pkgdown github workflow #148

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
^\.github$
^CITATION\.cff$
^vignettes/single_subj_N170$
^pkgdown$
50 changes: 50 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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.yaml

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- 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:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ vignettes/linear_modelling/*.txt
vignettes/single_subj_N170/*.set
vignettes/single_subj_N170/*.fdt
vignettes/single_subj_N170/*.set
docs
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Suggests:
mgcv,
infomax (>= 0.1.0),
Hmisc
URL: https://github.com/craddm/eegUtils, https://craddm.github.io/eegUtils
URL: https://github.com/craddm/eegUtils, https://craddm.github.io/eegUtils, https://craddm.github.io/eegUtils/
BugReports: https://github.com/craddm/eegUtils/issues
Config/testthat/edition: 3
Config/testthat/parallel: true
Expand Down
188 changes: 92 additions & 96 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,107 +1,103 @@
url: http://craddm.github.io/eegUtils

url: https://craddm.github.io/eegUtils/
development:
mode: auto

template:
bootstrap: 5
params:
bootswatch: flatly

navbar:
components:
twitter:
icon: "fab fa-twitter fa-lg"
icon: fab fa-twitter fa-lg
href: https://www.twitter.com/matt_craddock

reference:
- title: IO
desc: >
Functions for importing data or electrode information into R.
contents:
- starts_with("import")
- export_bva
- title: Processing
desc: >
Functions for pre-processing and processing data
contents:
- apply_ica
- compute_csd
- eeg_average
- eeg_combine
- eeg_decompose
- eeg_downsample
- eeg_filter
- eeg_reference
- electrode_locations
- epoch_data
- interp_elecs
- rm_baseline
- run_ICA
- tag_events
- title: Artefact rejection
desc: >
Functions for artefact rejection.
contents:
- starts_with("ar")
- epoch_stats
- channel_stats
- view_artefacts
- title: Selection
desc: Functions for selecting subsets of data
contents:
- starts_with("select")
- filter
- title: Plotting
desc: >
Functions for plotting data
contents:
- browse_data
- erp_image
- erp_raster
- erp_scalp
- geom_topo
- get_scalpmap
- interactive_scalp
- starts_with("plot_")
- stat_scalpmap
- stat_scalpcontours
- topoplot
- view_ica
- title: Frequency analysis
desc: Functions related to (time-)frequency analysis
contents:
- compute_itc
- compute_psd
- compute_tfr
- title: Converters
desc: Functions for converting objects to data.frames
contents:
- starts_with("as.")
- title: Accessors
desc: Functions for accessing and modifying specific elements of an object
contents:
- channels
- epochs
- events
- channel_names
- get_participant_id
- get_recording
- title: internal
contents:
- starts_with("print")
- starts_with("is")
- epoch_data.default
- tag_epochs
- demo_epochs
- demo_spatial
- eeg_epochs
- eeg_ICA
- cycle_calc
- tag_epochs
- rotate_angle
- list_epochs
- list_events
- fit_glm
- eegUtils-package
- eeg_summarise
- title: IO
desc: |
Functions for importing data or electrode information into R.
contents:
- starts_with("import")
- export_bva
- title: Processing
desc: |
Functions for pre-processing and processing data
contents:
- apply_ica
- compute_csd
- eeg_average
- eeg_combine
- eeg_decompose
- eeg_downsample
- eeg_filter
- eeg_reference
- electrode_locations
- epoch_data
- interp_elecs
- rm_baseline
- run_ICA
- tag_events
- title: Artefact rejection
desc: |
Functions for artefact rejection.
contents:
- starts_with("ar")
- epoch_stats
- channel_stats
- view_artefacts
- title: Selection
desc: Functions for selecting subsets of data
contents:
- starts_with("select")
- filter
- title: Plotting
desc: |
Functions for plotting data
contents:
- browse_data
- erp_image
- erp_raster
- erp_scalp
- geom_topo
- get_scalpmap
- interactive_scalp
- starts_with("plot_")
- stat_scalpmap
- stat_scalpcontours
- topoplot
- view_ica
- title: Frequency analysis
desc: Functions related to (time-)frequency analysis
contents:
- compute_itc
- compute_psd
- compute_tfr
- title: Converters
desc: Functions for converting objects to data.frames
contents: starts_with("as.")
- title: Accessors
desc: Functions for accessing and modifying specific elements of an object
contents:
- channels
- epochs
- events
- channel_names
- get_participant_id
- get_recording
- title: internal
contents:
- starts_with("print")
- starts_with("is")
- epoch_data.default
- tag_epochs
- demo_epochs
- demo_spatial
- eeg_epochs
- eeg_ICA
- cycle_calc
- tag_epochs
- rotate_angle
- list_epochs
- list_events
- fit_glm
- eegUtils-package
- eeg_summarise

1 change: 1 addition & 0 deletions man/eegUtils-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading