Skip to content

Commit

Permalink
trying to fix github actions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zabore committed Jan 18, 2024
1 parent e8bc9af commit 5d1d13f
Show file tree
Hide file tree
Showing 29 changed files with 83 additions and 70 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# 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:
Expand All @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
Expand All @@ -29,18 +29,21 @@ jobs:
R_KEEP_PKG_SOURCE: yes

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

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

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v1
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Imports:
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
VignetteBuilder: knitr
Suggests:
testthat,
Expand Down
2 changes: 1 addition & 1 deletion R/d.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ d <- function(label, M, factors, data) {
}

# Check if M is a numeric variable >=2
if (class(M) != "numeric" | M < 2) {
if (!is.numeric(M) | M < 2) {
stop("The argument to M, the total number of subtypes, must be a numeric value >=2.")
}

Expand Down
2 changes: 1 addition & 1 deletion R/dstar.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dstar <- function(label, M, factors, data) {
}

# Check if M is a numeric variable >=2
if (class(M) != "numeric" | M < 2) {
if (!is.numeric(M) | M < 2) {
stop("The argument to M, the total number of subtypes, must be a numeric value >=2.")
}

Expand Down
2 changes: 1 addition & 1 deletion R/eh_test_subtype.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ eh_test_subtype <- function(label, M, factors, data, digits = 2) {
}

# Check if M is a numeric variable >=2
if (class(M) != "numeric" | M < 2) {
if (!is.numeric(M) | M < 2) {
stop("The argument to M, the total number of subtypes, must be a numeric value >=2.")
}

Expand Down
2 changes: 1 addition & 1 deletion R/optimal_kmeans_d.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ optimal_kmeans_d <- function(markers, M, factors, case, data,
nstart = 100, seed = NULL) {

# Check if M is a numeric variable >=2
if (class(M) != "numeric" | M < 2) {
if (!is.numeric(M) | M < 2) {
stop("The argument to M, the total number of subtypes, must be a numeric value >=2.")
}

Expand Down
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output: github_document
<!-- README.md is generated from README.Rmd. Please edit that file -->

[![Coverage status](https://codecov.io/gh/zabore/riskclustr/branch/master/graph/badge.svg)](https://codecov.io/github/zabore/riskclustr?branch=master)
[![R-CMD-check](https://github.com/zabore/riskclustr/workflows/R-CMD-check/badge.svg)](https://github.com/zabore/riskclustr/actions)
[![R-CMD-check](https://github.com/zabore/riskclustr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/zabore/riskclustr/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/riskclustr)](https://cran.r-project.org/package=riskclustr)
[![status](https://joss.theoj.org/papers/10.21105/joss.01269/status.svg)](https://joss.theoj.org/papers/10.21105/joss.01269)

Expand Down Expand Up @@ -46,3 +46,5 @@ See [http://www.emilyzabor.com/riskclustr/reference/](http://www.emilyzabor.com/
> Begg CB, Zabor EC, Bernstein JL, Bernstein L, Press MF, Seshan VE. A conceptual and methodological framework for investigating etiologic heterogeneity. *Stat Med.* 2013;32(29):5039-52. doi: 10.1002/sim.5902
> Begg CB, Seshan VE, Zabor EC, et al. Genomic investigation of etiologic heterogeneity: methodologic challenges. *BMC Med Res Methodol.* 2014;14:138. doi: 10.1186/1471-2288-14-138
> Zabor, EC. riskclustr: Functions to Study Etiologic Heterogeneity. *Journal of Open Source Software.* 2019;4(35):1269. doi:10.21105/joss.01269
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[![Coverage
status](https://codecov.io/gh/zabore/riskclustr/branch/master/graph/badge.svg)](https://codecov.io/github/zabore/riskclustr?branch=master)
[![R-CMD-check](https://github.com/zabore/riskclustr/workflows/R-CMD-check/badge.svg)](https://github.com/zabore/riskclustr/actions)
[![R-CMD-check](https://github.com/zabore/riskclustr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/zabore/riskclustr/actions/workflows/R-CMD-check.yaml)
[![CRAN
status](https://www.r-pkg.org/badges/version/riskclustr)](https://cran.r-project.org/package=riskclustr)
[![status](https://joss.theoj.org/papers/10.21105/joss.01269/status.svg)](https://joss.theoj.org/papers/10.21105/joss.01269)
Expand Down Expand Up @@ -64,3 +64,7 @@ function documentation.
> Begg CB, Seshan VE, Zabor EC, et al. Genomic investigation of
> etiologic heterogeneity: methodologic challenges. *BMC Med Res
> Methodol.* 2014;14:138. doi: 10.1186/1471-2288-14-138
> Zabor, EC. riskclustr: Functions to Study Etiologic Heterogeneity.
> *Journal of Open Source Software.* 2019;4(35):1269.
> <doi:10.21105/joss.01269>
2 changes: 1 addition & 1 deletion docs/404.html

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

6 changes: 3 additions & 3 deletions docs/articles/calculate_d.html

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

6 changes: 3 additions & 3 deletions docs/articles/contribute.html

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

6 changes: 3 additions & 3 deletions docs/articles/eh_test.html

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

9 changes: 4 additions & 5 deletions docs/articles/factor_pvalue.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

13 changes: 9 additions & 4 deletions docs/articles/optimal_d.html

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

20 changes: 11 additions & 9 deletions docs/authors.html

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

7 changes: 5 additions & 2 deletions docs/index.html

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

2 changes: 1 addition & 1 deletion docs/news/index.html

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

6 changes: 3 additions & 3 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pandoc: '2.18'
pkgdown: 2.0.6
pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
calculate_d: calculate_d.html
contribute: contribute.html
eh_test: eh_test.html
factor_pvalue: factor_pvalue.html
optimal_d: optimal_d.html
last_built: 2022-10-20T14:48Z
last_built: 2024-01-18T16:24Z
urls:
reference: http://www.emilyzabor.com/riskclustr/reference
article: http://www.emilyzabor.com/riskclustr/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/d.html

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

2 changes: 1 addition & 1 deletion docs/reference/dstar.html

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

2 changes: 1 addition & 1 deletion docs/reference/eh_test_marker.html

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

2 changes: 1 addition & 1 deletion docs/reference/eh_test_subtype.html

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

Loading

0 comments on commit 5d1d13f

Please sign in to comment.