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

Develop 0.8.0 #127

Merged
merged 257 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
108c77c
fixed typo in messages during baseline correlation
craddm Feb 16, 2022
16b61af
corrected importFrm typo in as.data.frame.eeg_epochs
craddm Feb 16, 2022
b4e3648
add support for selecting multiple individual time points using lists
craddm Feb 18, 2022
74da365
select_times.eeg_data fixed, website upated
craddm Feb 18, 2022
a57c91c
add reference to eeg_evoked
craddm Mar 4, 2022
379e846
make `electrode_locations.data.frame` keep original capitalization of…
craddm Mar 4, 2022
dcb94a3
fix for odd dplyr issue in ar-faster
craddm Mar 24, 2022
f3e002e
more robust handling of mixed case channel names in data.frames
craddm Mar 24, 2022
c629869
add plot_gfp
craddm Apr 6, 2022
f73995b
fix select_times dropping singleton dimensions
craddm Apr 6, 2022
f0c814d
add better import of dplyr::all_of
craddm Apr 6, 2022
60500ae
move functions for importing BVA files to separate file
craddm Apr 6, 2022
aefb5dd
some updates to handle annotations with fast_bdf = TRUE
craddm Apr 6, 2022
010082c
fix deprecated font-awesome line-chart
craddm Apr 6, 2022
6cbfbaa
update namespace and news
craddm Apr 6, 2022
e5b76da
added arguments to plot_gfp
craddm Apr 7, 2022
566eb04
add BDFAnnotations global var
craddm Apr 7, 2022
86c7f57
fix freq_range parameter for plot_timecourse.eeg_tfr
craddm Apr 7, 2022
9c53f98
documentation improvements
craddm Apr 7, 2022
f569d61
change browse_data.eeg_ICA to allow selection of components to reject
craddm Apr 20, 2022
c81b2d9
improve logical flow of view_ica to avoid excessive repeated computat…
craddm Apr 20, 2022
3e0f5ed
update news and webpage
craddm Apr 20, 2022
b7924bc
remove dependency on Matrix, switch to qr() instead of rankMatrix
craddm Apr 20, 2022
448ab1c
allow clicking on single topographies to switch to an individual comp…
craddm Apr 20, 2022
cc0d7b9
R required increased to 3.4
craddm Apr 20, 2022
adf87b5
allowed view_ica to return reject components or cleaned data
craddm Apr 20, 2022
f8023da
website updated
craddm Apr 20, 2022
8a49a14
view_artefacts converted to Shiny gadget
craddm Apr 20, 2022
5368bdc
faster psd when for epoched data
craddm Apr 20, 2022
e26c0dc
change line-chart to chart-line in interactive_scalp()
craddm Apr 24, 2022
2d42209
better handling of dupliate columns when converting to data.frame
craddm Apr 24, 2022
46478ab
updated compute_psd docs
craddm Apr 24, 2022
5a4d171
get rid of missing title warning from summary_contour
craddm Apr 24, 2022
89153ee
getting eeg_average working with eeg_group.eeg_evoked
craddm Apr 24, 2022
70fdd13
update github actions workflow
craddm Apr 24, 2022
c079c9b
fix typo in browse_data.eeg_data
craddm Apr 24, 2022
81a0cd5
update github readme
craddm Apr 24, 2022
b795445
update news.md
craddm Apr 24, 2022
7dd182a
improvements to eeg_average.eeg_evoked
craddm Apr 24, 2022
c17b8e4
update website
craddm Apr 24, 2022
768febe
fix mac install xquartz in github action
craddm Apr 24, 2022
ccaf2d5
fix github-actions - install linux system dependencies
craddm Apr 25, 2022
baa4d28
add 30 min timeout for R-CMD-check
craddm Apr 25, 2022
ee784a7
unify electrode layout plot code in `plot_electrodes`
craddm Apr 25, 2022
08628c9
tidy tests and add `ar_thresh` for eeg_data
craddm Apr 25, 2022
90688c4
update description date
craddm Apr 25, 2022
e8d6289
include internal doc for create_electrode_layout_plot
craddm Apr 25, 2022
646c12c
minor site update
craddm Apr 25, 2022
b46abf8
add tests for plot_timecourse.eeg_tfr, and switch use of `filter()` f…
craddm Apr 25, 2022
4e34dab
remove unused parameter from `plot_butterfly()` and updated its docs
craddm Apr 25, 2022
0902362
add some additional tests for dplyr functions on eeg_data
craddm Apr 25, 2022
7f6ff12
removing undocumented argument from plot_butterfly
craddm Apr 25, 2022
28a12b7
erp image tests for eeg_ica
craddm Apr 25, 2022
0168564
add na.rm = TRUE for various ar_faster.eeg_group functions
craddm May 9, 2022
db7697d
working on support for returning only mixing and unmixing matrices fr…
craddm May 9, 2022
f14131f
add plot_electrodes.eeg_evoked method
craddm May 9, 2022
2b9273e
better title and menu style for view_ica
craddm May 9, 2022
2a82ea0
add algorithm field to output from run_SSD
craddm May 9, 2022
75846b2
reduce code repetition in compute_fr
craddm May 16, 2022
949091d
improve plot_timecourse.eeg_tfr test
craddm May 16, 2022
ba814b7
roxygen update note
craddm May 16, 2022
e6a36df
improved printing of determined tolerance for SOBI
craddm May 25, 2022
0688b54
add basic chan_info structure for biosemi bdf files on import
craddm May 25, 2022
e6e3ee9
bump rlang to >= 1.0.0
craddm May 25, 2022
f06b8d9
replace data.table use in faster_epochs with easier to understand bas…
craddm May 25, 2022
14e8f29
update tests
craddm May 25, 2022
28ad478
update test snapshots for latest r
craddm Jun 5, 2022
7f799ed
minor doc update for eeg_filter
craddm Jun 6, 2022
e809a92
add trim_edges to compute_tfr
craddm Jun 6, 2022
903e13e
minor doc updates
craddm Jun 6, 2022
05db0ca
added some additional tests and updated others
craddm Jun 6, 2022
27718b8
a little bit of code cleaning
craddm Jun 11, 2022
4861e18
baseline correct now records the baseline times used
craddm Jun 11, 2022
e41495a
add gfp tests
craddm Jun 12, 2022
75011c1
add colour arguments to parse_for_tc in plot_difference
craddm Jun 13, 2022
15e8471
change find_times to find only the nearest times; when some are tied,…
craddm Jun 13, 2022
e5cf1fc
update eeg_Average to add weights and do weighted averaging
craddm Jun 13, 2022
704f90c
update plot_timecourse and plot_difference to cope with weighted aver…
craddm Jun 13, 2022
04f3ed8
update and add more tests
craddm Jun 13, 2022
c711f05
update eegUtils vignette
craddm Jun 13, 2022
97e3029
update namespace and news
craddm Jun 13, 2022
29b58f8
update website
craddm Jun 13, 2022
c1f92da
udpate codemeta and cff
craddm Sep 9, 2022
d693e20
change `time_lim` parameter to `baseline`
craddm Sep 9, 2022
7cfa671
update new roxygen docs
craddm Sep 9, 2022
18b20e5
make tfr examples multiline
craddm Sep 9, 2022
d216b84
update dev site
craddm Sep 9, 2022
aec13b8
update description
craddm Sep 28, 2022
b548515
slight improvement to docs for topoplot()
craddm Sep 28, 2022
f16c7a5
update description date and docs
craddm Sep 28, 2022
b0f5ca3
update build workflow to v2
craddm Sep 28, 2022
11b4ca4
install mac dependencies before running cmd check
craddm Sep 28, 2022
1090173
fix brew install --cask
craddm Sep 28, 2022
0c9528e
Allow custom titles for colourbar
craddm Oct 7, 2022
2d71fbe
propogate custom titles appropriately
craddm Oct 7, 2022
64813db
centre legend title in topoplot
craddm Oct 7, 2022
2b9e803
update topoplot test reference images
craddm Oct 7, 2022
b74a0f6
get rid of old commented out code
craddm Oct 8, 2022
a180216
update news
craddm Oct 8, 2022
7c96c68
test for custom legend title topoplot
craddm Oct 8, 2022
560c7fb
Add `dropped_aes` to various `stat_*`s for ggplot 3.4 compatability
craddm Feb 17, 2023
72bae0e
realign code
craddm Feb 17, 2023
d219469
add some further aesthetics to `dropped_aes`
craddm Feb 17, 2023
290333b
update news.md
craddm Feb 18, 2023
7abd200
replace `size` with `linewidth`
craddm Feb 18, 2023
cf4fa74
use `all_of` for tidyselect
craddm Feb 18, 2023
5162237
update description with new ggplot2 version requirement
craddm Feb 23, 2023
459dbfa
change size to linewidth
craddm Feb 23, 2023
dd5384e
add "label" to dropped_aes
craddm Feb 23, 2023
49809e3
add "label" to dropped_aes
craddm Feb 23, 2023
dd53dee
use tidyr::all_of in pivot_wider
craddm Feb 23, 2023
af25b27
update docs
craddm Feb 23, 2023
867cc73
reformat ggplot tests and move label aesthetic
craddm Feb 23, 2023
69b6df8
Change plotting of tfr timecourse to allow no baseline
craddm Aug 21, 2023
dd6e794
update test images for tfr timecourses
craddm Aug 21, 2023
37491cd
update topo functions to appropriate ggplot2 3.4.0 arguments
craddm Aug 21, 2023
f9bd190
update line size to linewidth for ggplot2 3.4.0
craddm Aug 21, 2023
1ef1e21
Cleaning up code style
craddm Aug 31, 2023
7b6ad8d
cleaning up code style
craddm Aug 31, 2023
290625f
Update news and description
craddm Aug 31, 2023
94a2bbd
doc updates
craddm Aug 31, 2023
5489afe
update dev website
craddm Aug 31, 2023
88b22ff
fix typo and clarify roles
craddm Sep 11, 2023
a1fd16e
improve package help document
craddm Sep 11, 2023
219f48a
Merge branch 'develop' of https://github.com/craddm/eegUtils into dev…
craddm Sep 11, 2023
ebbd8c8
update actions version for CI
craddm Sep 11, 2023
880b0c4
fix some code style as per linter
craddm Sep 12, 2023
48a62c5
code style improvements
craddm Sep 12, 2023
b3769ad
Merge branch 'develop' of https://github.com/craddm/eegUtils into dev…
craddm Sep 12, 2023
e2963de
code style improvements
craddm Sep 12, 2023
41cd60d
code style improvements
craddm Sep 12, 2023
3a0f216
minor doc updates
craddm Sep 12, 2023
da5c5be
remove c++11 compiler flag from makevars
craddm Sep 12, 2023
5e64c03
minor doc update
craddm Sep 12, 2023
5f2e4f4
add summarise functions
craddm Sep 12, 2023
ecf47fb
Merge branch 'develop' of https://github.com/craddm/eegUtils into dev…
craddm Sep 13, 2023
0490424
code style changes
craddm Sep 13, 2023
62a55bf
Code style improvements and doc fixes
craddm Sep 13, 2023
c0fc203
code style improvements
craddm Sep 13, 2023
c86e65a
fix documentation errors and clarify options for decompositions
craddm Sep 13, 2023
c4523d2
remove commented code
craddm Sep 13, 2023
e27ef57
minor code cleaning
craddm Sep 14, 2023
c369271
minor code cleaning
craddm Sep 14, 2023
2553284
add weighted averaging for tfr objects
craddm Sep 15, 2023
8e1671e
Add support for weighted averaging to plot_tfr
craddm Sep 15, 2023
d3eb420
Update news
craddm Sep 15, 2023
9a37ebc
update website
craddm Sep 15, 2023
422c4e3
user newer dplyr syntax
craddm Sep 15, 2023
00160e0
use newer caching method for Shiny, switch to mean_se
craddm Sep 15, 2023
393da03
add verbose parameter for eeg_average
craddm Sep 15, 2023
aef289e
doc fixes
craddm Sep 15, 2023
81af575
minor code style, and don't assume names of heog and veog
craddm Sep 15, 2023
2edd488
trim code for erp_scalp and fix indiv electrode plotting
craddm Sep 15, 2023
bfd4411
minor doc improvement
craddm Sep 15, 2023
66af259
use newer caching method, use mean_se instead of mean_cl_normal
craddm Sep 15, 2023
cc542e0
add s3method for interactive_scalp
craddm Sep 15, 2023
c0a07f1
link functions to packages correctly
craddm Sep 16, 2023
1fd23cc
check test_cine argument
craddm Oct 5, 2023
0db36bd
Minor code cleaning
craddm Oct 5, 2023
49e1429
remove deprecated iir_filt method
craddm Oct 6, 2023
60827cb
Correct typo, silence eeg_average messages
craddm Oct 6, 2023
2777fb2
replace iir_filt with eeg_filter in tests
craddm Oct 6, 2023
de7922f
update workflow with codecov
craddm Oct 7, 2023
1351c98
update to testthat 3, add ssd snapshot test
craddm Oct 7, 2023
c3e9dab
fixes issues with `filter`ing `eeg_tfr`
craddm Oct 7, 2023
95cb189
delete commented code
craddm Oct 7, 2023
298dbb8
use parallel testthat
craddm Oct 8, 2023
5b3e435
fixes to select_epochs for eeg_tfr and eeg_ica
craddm Oct 8, 2023
a8ec7ee
improvements and fixes for testing using 3e testthat
craddm Oct 8, 2023
ad76479
output ICA signals as tibbles
craddm Oct 8, 2023
8bd2d87
clean up tests
craddm Oct 8, 2023
e33b1f2
add separate codecov workflow
craddm Oct 12, 2023
c94c86e
add eeg_summarise example
craddm Oct 12, 2023
2b8ba5e
additional test and reference files
craddm Oct 12, 2023
41ef2cf
add more eeg_combine tests
craddm Oct 12, 2023
a7227f1
combine channel info across input datasets, warn if not consistent
craddm Oct 12, 2023
3ac0d1d
minor code cleanups
craddm Oct 18, 2023
d4a2f5e
include examples and vignettes in coverage
craddm Oct 18, 2023
2c95698
skips some test plots on CI
craddm Oct 18, 2023
01632f8
remove deprecated function
craddm Oct 18, 2023
cb22e01
code tidying
craddm Oct 18, 2023
b5fe1bf
if eeg_epochs are not duplicated, will concatenate and not attempt to…
craddm Oct 19, 2023
b101be8
Add print method for tfr_average objects
craddm Oct 19, 2023
5de1dc6
remove unnecessary imports, add rename for eeg_data
craddm Oct 19, 2023
4d9b286
remove unnecessary imports, add rename for eeg_data
craddm Oct 19, 2023
af1caa4
add print for tfr_average, rename for eeg_data
craddm Oct 19, 2023
cb01877
check_timings now checks whether epochs are duplicated or not
craddm Oct 19, 2023
22995b2
Corrections to logic of eeg_combine.eeg_epochs
craddm Oct 20, 2023
696a05e
add extra detail in eeg_combine help
craddm Oct 20, 2023
ea64982
add Hmisc to suggests
craddm Oct 20, 2023
9015a12
update site
craddm Oct 20, 2023
283404e
add extra timecourse examples
craddm Oct 20, 2023
013f042
update news
craddm Oct 20, 2023
b4e5fda
Improve ar_eogcor plots and allow different cor methods
craddm Nov 7, 2023
b4c589e
update test snapshots
craddm Aug 19, 2024
735b944
update R version and Roxygen version
craddm Aug 19, 2024
ffbd5e9
flag conv_to_mat as an internal function
craddm Aug 19, 2024
c930e3c
update dev website
craddm Aug 19, 2024
1a2d129
update man pages
craddm Aug 19, 2024
75207fa
Always message and return original data when no col names supplied fo…
craddm Sep 9, 2024
f9416da
Handle colours better for scalp maps and use bslib for style
craddm Sep 9, 2024
d0b54e7
add bslib as dependency
craddm Sep 9, 2024
3aec3e4
changed deprecated argument to theme()
craddm Sep 10, 2024
ce27e58
use correct syntax to modify legend position
craddm Sep 10, 2024
c374694
recode browse_data for epochs with bslib
craddm Sep 12, 2024
20c0e01
add tooltip to individual panel
craddm Sep 13, 2024
021e40f
reworking ICA dashboard
craddm Sep 16, 2024
fa61bad
use bslib instead of miniui
craddm Sep 18, 2024
8ab1562
recode artefact viewer to use bslib
craddm Sep 21, 2024
a118f03
add package name to function calls
craddm Sep 21, 2024
fc05d03
add package name to function calls
craddm Sep 21, 2024
da77b85
simplify eeg_data browser server and ui logic
craddm Sep 30, 2024
ee8845f
user range slider instead of individual step slider
craddm Sep 30, 2024
8e89766
make data browser timecourse plots vertically resizable
craddm Oct 1, 2024
95f6ee6
use less transparent lines in browse_mode
craddm Oct 1, 2024
4e4034e
add control over microvolt scale
craddm Oct 1, 2024
bfd3fc9
add scale to continuous data browser
craddm Oct 1, 2024
1ed7cf9
update news
craddm Oct 1, 2024
399b572
allow resizing of plots for continuous data
craddm Oct 1, 2024
8d4bdea
add tooltips
craddm Oct 2, 2024
d6ac25a
replace unnecessary class with style
craddm Oct 2, 2024
6749b27
Merge pull request #142 from craddm/bslib
craddm Oct 2, 2024
c78b173
correct docs
craddm Oct 4, 2024
a540fa8
remove unused argument from docs
craddm Oct 4, 2024
a9fbce6
correct docs
craddm Oct 4, 2024
c176e70
correct docs
craddm Oct 4, 2024
ff7ca17
update dev website
craddm Oct 4, 2024
70d90cb
improve CSD computations
craddm Oct 16, 2024
68b76ae
Further CSD improvements
craddm Oct 16, 2024
df205e6
remove typo and rename variable
craddm Oct 16, 2024
9f65b1d
add whitespace
craddm Oct 16, 2024
e829c8b
optimise sobi_ica function and remove dependency on whitening package
craddm Oct 16, 2024
0ff4c7b
fix sobi_ica docs
craddm Oct 16, 2024
895f234
update docs
craddm Oct 16, 2024
f5be0cc
remove dependency on pracma
craddm Oct 16, 2024
76a21fe
refactored run_ICA for readability and extensibility
craddm Oct 18, 2024
6bd1178
update news
craddm Oct 18, 2024
8abbdaa
update documentation for run_ICA
craddm Oct 18, 2024
619c6d4
remove unimplemented arguments
craddm Oct 18, 2024
bb0619e
update test images
craddm Oct 18, 2024
6745e8d
Merge pull request #146 from craddm/speed-ica
craddm Oct 18, 2024
ad949c7
use consistent variable name across s3 function, and remove unused va…
craddm Oct 19, 2024
3b22198
Merge pull request #147 from craddm/fix-s3-error
craddm Oct 19, 2024
d81f2c0
fix .data
craddm Oct 19, 2024
9434ddd
add tests for data combination
craddm Oct 19, 2024
4b123bb
Update version numbers
craddm Oct 22, 2024
ec4fd88
ensure version number is stored for glms
craddm Oct 22, 2024
3d5e4b2
bring rejection history from ar faster and thresh into a single data …
craddm Oct 22, 2024
f59f769
update version of demo_epochs
craddm Oct 22, 2024
a432f5a
update test reference files
craddm Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
^\.zenodo\.json$
^\.github$
^CITATION\.cff$
^vignettes/single_subj_N170$
85 changes: 25 additions & 60 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
# 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
branches: [main]
pull_request:
branches:
- main
- master
branches: [main]

name: R-CMD-check

jobs:
R-CMD-check:
timeout-minutes: 30
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
Expand All @@ -22,73 +19,41 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v2
- uses: r-lib/actions/setup-r@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install hdf5 on mac
if: runner.os == 'macOS'
run: brew install hdf5

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
shell: Rscript {0}
- name: Install XQuartz on macOS
if: runner.os == 'macOS'
run: brew install --cask xquartz

- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
- uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
upload-snapshots: true

- name: Test coverage
if: runner.os == 'macOS'
run: covr::codecov(type = c("tests", "examples"), exclusions = "R/view_ica.R")
shell: Rscript {0}
52 changes: 52 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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
pull_request:
branches: main

name: test-coverage

jobs:
test-coverage:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
needs: coverage

- name: Test coverage
run: |
covr::codecov(
type = "all",
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ vignettes/linear_modelling/*.fdt
vignettes/linear_modelling/*.set
vignettes/linear_modelling/*.mat
vignettes/linear_modelling/*.txt
vignettes/single_subj_N170/*.set
vignettes/single_subj_N170/*.fdt
vignettes/single_subj_N170/*.set
Loading
Loading