Skip to content

Commit a5cc08a

Browse files
author
Jasen Finch
authored
Merge pull request #4 from jasenfinch/devel
v0.3.0
2 parents e72d852 + f647532 commit a5cc08a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2066
-3541
lines changed

.Rbuildignore

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
^LICENSE\.md$
66
^codecov\.yml$
77
^docs
8+
^_pkgdown\.yml$
9+
^docs$
10+
^pkgdown$

.github/workflows/R-CMD-check.yaml

+25-64
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
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
33
on:
44
push:
5-
branches:
6-
- main
7-
- master
8-
- devel
5+
branches: [main, master, devel]
96
pull_request:
10-
branches:
11-
- main
12-
- master
7+
branches: [main, master]
138

149
name: R-CMD-check
1510

@@ -23,71 +18,37 @@ jobs:
2318
fail-fast: false
2419
matrix:
2520
config:
21+
#- {os: macos-latest, r: 'release'}
2622
- {os: windows-latest, r: 'release'}
27-
- {os: macOS-latest, r: 'release'}
28-
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
29-
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
3026

3127
env:
32-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
33-
RSPM: ${{ matrix.config.rspm }}
28+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29+
R_KEEP_PKG_SOURCE: yes
3430

3531
steps:
36-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3733

38-
- uses: r-lib/actions/setup-r@v1
39-
with:
40-
r-version: ${{ matrix.config.r }}
41-
42-
- uses: r-lib/actions/setup-pandoc@v1
43-
44-
- name: Query dependencies
45-
run: |
46-
install.packages('remotes')
47-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
48-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
49-
shell: Rscript {0}
34+
- uses: r-lib/actions/setup-pandoc@v2
5035

51-
- name: Cache R packages
52-
if: runner.os != 'Windows'
53-
uses: actions/cache@v2
36+
- uses: r-lib/actions/setup-r@v2
5437
with:
55-
path: ${{ env.R_LIBS_USER }}
56-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
57-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
58-
59-
- name: Install system dependencies
38+
r-version: ${{ matrix.config.r }}
39+
http-user-agent: ${{ matrix.config.http-user-agent }}
40+
use-public-rspm: true
41+
42+
- name: Install Linux system dependencies
6043
if: runner.os == 'Linux'
6144
run: |
62-
while read -r cmd
63-
do
64-
eval sudo $cmd
65-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
66-
sudo apt-get install -y libopenbabel-dev
45+
sudo apt install libopenbabel-dev libeigen3-dev
6746
68-
- name: Install dependencies
69-
run: |
70-
remotes::install_deps(dependencies = TRUE)
71-
remotes::install_cran(c("rcmdcheck","goodpractice"))
72-
shell: Rscript {0}
73-
74-
- name: Check
75-
env:
76-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
77-
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
78-
shell: Rscript {0}
47+
- uses: r-lib/actions/setup-r-dependencies@v2
48+
with:
49+
extra-packages: any::rcmdcheck
50+
needs: check
7951

80-
- name: Goodpractice
81-
run: goodpractice::goodpractice()
82-
shell: Rscript {0}
83-
84-
- name: Test coverage
85-
run: covr::codecov()
86-
shell: Rscript {0}
87-
88-
- name: Upload check results
89-
if: failure()
90-
uses: actions/upload-artifact@main
52+
- uses: r-lib/actions/check-r-package@v2
9153
with:
92-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
93-
path: check
54+
upload-snapshots: true

.github/workflows/pkgdown.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
branches: [main, master]
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+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- uses: r-lib/actions/setup-pandoc@v2
26+
27+
- uses: r-lib/actions/setup-r@v2
28+
with:
29+
use-public-rspm: true
30+
31+
- name: Install Linux system dependencies
32+
if: runner.os == 'Linux'
33+
run: |
34+
sudo apt install libopenbabel-dev libeigen3-dev
35+
36+
- uses: r-lib/actions/setup-r-dependencies@v2
37+
with:
38+
extra-packages: any::pkgdown, local::.
39+
needs: website
40+
41+
- name: Build site
42+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
43+
shell: Rscript {0}
44+
45+
- name: Deploy to GitHub pages 🚀
46+
if: github.event_name != 'pull_request'
47+
uses: JamesIves/[email protected]
48+
with:
49+
clean: false
50+
branch: gh-pages
51+
folder: docs

.github/workflows/test-coverage.yaml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
branches: [main, master]
8+
9+
name: test-coverage
10+
11+
jobs:
12+
test-coverage:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
23+
24+
- name: Install Linux system dependencies
25+
if: runner.os == 'Linux'
26+
run: |
27+
sudo apt install libopenbabel-dev libeigen3-dev
28+
29+
- uses: r-lib/actions/setup-r-dependencies@v2
30+
with:
31+
extra-packages: any::covr
32+
needs: coverage
33+
34+
- name: Test coverage
35+
run: |
36+
covr::codecov(
37+
quiet = FALSE,
38+
clean = FALSE,
39+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
40+
)
41+
shell: Rscript {0}
42+
43+
- name: Show testthat output
44+
if: always()
45+
run: |
46+
## --------------------------------------------------------------------
47+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
48+
shell: bash
49+
50+
- name: Upload test results
51+
if: failure()
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: coverage-test-failures
55+
path: ${{ runner.temp }}/package

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
docs

DESCRIPTION

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
Package: riches
22
Title: Strucutral and Functional Enrichment Analyses
3-
Version: 0.2.1
3+
Version: 0.3.0
44
Authors@R:
55
person(given = "Jasen",
66
family = "Finch",
77
role = c("aut", "cre"),
88
email = "[email protected]")
9-
Description: Structural and functional enrichment for metabolomics data.
9+
Description: Structural and functional enrichment for metabolomics data.
1010
URL: https://jasenfinch.github.io/riches/
1111
BugReports: https://github.com/jasenfinch/riches/issues
1212
biocViews: Metabolomics
1313
License: GPL-3
1414
Encoding: UTF-8
15+
Roxygen: list(markdown = TRUE)
1516
Depends: R (>= 3.5.0)
16-
Imports: FELLA,
17-
MFassign,
17+
Imports:
18+
broom,
19+
cheminf,
20+
construction,
1821
dplyr,
19-
ggthemes,
22+
FELLA,
23+
igraph,
2024
magrittr,
21-
stringr,
22-
tidygraph,
25+
metabolyseR,
2326
methods,
2427
mzAnnotation,
2528
purrr,
26-
metabolyseR,
27-
ggplot2,
28-
ggraph,
29-
tibble
30-
Remotes: jasenfinch/MFassign,
31-
jasenfinch/mzAnnotation,
32-
jasenfinch/metabolyseR
29+
rlang,
30+
stringr,
31+
tibble,
32+
tidygraph,
33+
tidyr,
34+
tidyselect
35+
Remotes: aberHRML/assignments,
36+
aberHRML/mzAnnotation,
37+
jasenfinch/cheminf,
38+
jasenfinch/construction,
39+
jasenfinch/metabolyseR,
40+
bioc::FELLA
3341
LazyData: true
34-
RoxygenNote: 7.1.1
35-
Collate: allClasses.R
36-
allGenerics.R
37-
access.R
38-
enrichmentParameters.R
39-
example-data.R
40-
functionalEnrichment.R
41-
organismNetwork.R
42-
plotGraph.R
43-
riches.R
42+
RoxygenNote: 7.2.3
4443
Suggests:
44+
assignments,
4545
testthat,
4646
covr

0 commit comments

Comments
 (0)