Skip to content

Commit

Permalink
fix: avoid error message from issue #584
Browse files Browse the repository at this point in the history
- Add ... to findChromPeaks,OnDiskMSnExp to avoid error message from issue #584.
  • Loading branch information
jorainer committed Nov 3, 2021
1 parent 6db8f84 commit 062a48a
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: '4.1', bioc: '3.14', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.1', bioc: 'devel'}
- { os: windows-latest, r: '4.1', bioc: 'devel'}
- { os: ubuntu-latest, r: 'devel', bioc: '3.15', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'devel', bioc: '3.15'}
- { os: windows-latest, r: 'devel', bioc: '3.15'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: xcms
Version: 3.17.0
Version: 3.17.1
Title: LC-MS and GC-MS Data Analysis
Description: Framework for processing and visualization of chromatographically
separated and single-spectra mass spectral data. Imports from AIA/ANDI NetCDF,
Expand Down
12 changes: 7 additions & 5 deletions R/methods-OnDiskMSnExp.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#' @param msLevel \code{integer(1)} defining the MS level on which the peak
#' detection should be performed. Defaults to \code{msLevel = 1}.
#'
#' @param ... ignored.
#'
#' @return For \code{findChromPeaks}: if \code{return.type = "XCMSnExp"} an
#' \code{\link{XCMSnExp}} object with the results of the peak detection.
#' If \code{return.type = "list"} a list of length equal to the number of
Expand All @@ -58,7 +60,7 @@
setMethod("findChromPeaks",
signature(object = "OnDiskMSnExp", param = "CentWaveParam"),
function(object, param, BPPARAM = bpparam(), return.type = "XCMSnExp",
msLevel = 1L) {
msLevel = 1L, ...) {
return.type <- match.arg(return.type, c("XCMSnExp", "list",
"xcmsSet"))
startDate <- date()
Expand Down Expand Up @@ -137,7 +139,7 @@ setMethod("findChromPeaks",
setMethod("findChromPeaks",
signature(object = "OnDiskMSnExp", param = "MatchedFilterParam"),
function(object, param, BPPARAM = bpparam(), return.type = "XCMSnExp",
msLevel = 1L) {
msLevel = 1L, ...) {
return.type <- match.arg(return.type, c("XCMSnExp", "list",
"xcmsSet"))
startDate <- date()
Expand Down Expand Up @@ -230,7 +232,7 @@ setMethod("findChromPeaks",
setMethod("findChromPeaks",
signature(object = "OnDiskMSnExp", param = "MassifquantParam"),
function(object, param, BPPARAM = bpparam(), return.type = "XCMSnExp",
msLevel = 1L) {
msLevel = 1L, ...) {
return.type <- match.arg(return.type, c("XCMSnExp", "list",
"xcmsSet"))
startDate <- date()
Expand Down Expand Up @@ -299,7 +301,7 @@ setMethod("findChromPeaks",
setMethod("findChromPeaks",
signature(object = "OnDiskMSnExp", param = "MSWParam"),
function(object, param, BPPARAM = bpparam(), return.type = "XCMSnExp",
msLevel = 1L) {
msLevel = 1L, ...) {
return.type <- match.arg(return.type, c("XCMSnExp", "list",
"xcmsSet"))
startDate <- date()
Expand Down Expand Up @@ -370,7 +372,7 @@ setMethod("findChromPeaks",
setMethod("findChromPeaks",
signature(object = "OnDiskMSnExp", param = "CentWavePredIsoParam"),
function(object, param, BPPARAM = bpparam(), return.type = "XCMSnExp",
msLevel = 1L) {
msLevel = 1L, ...) {
return.type <- match.arg(return.type, c("XCMSnExp", "list",
"xcmsSet"))
startDate <- date()
Expand Down
6 changes: 5 additions & 1 deletion inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Changes in version 3.17.1

- Fix error message from issue [584](https://github.com/sneumann/xcms/issues/584).

Changes in version 3.15.5

- Disable testing on windows i386, providing some speedup
- Disable parallel processing on Windows, causing an issue in testthat on BioC build check
- Disable parallel processing on Windows, causing an issue in testthat on BioC build check

Changes in version 3.15.4

Expand Down
5 changes: 4 additions & 1 deletion man/findChromPeaks-centWave.Rd

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

5 changes: 4 additions & 1 deletion man/findChromPeaks-centWaveWithPredIsoROIs.Rd

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

5 changes: 4 additions & 1 deletion man/findChromPeaks-massifquant.Rd

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

5 changes: 4 additions & 1 deletion man/findChromPeaks-matchedFilter.Rd

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

3 changes: 2 additions & 1 deletion man/findPeaks-MSW.Rd

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

0 comments on commit 062a48a

Please sign in to comment.