Skip to content

Commit

Permalink
add major API change info message
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibb committed Jun 21, 2015
1 parent 62a3301 commit ac44961
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/functions-fragments.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
.calculateFragments <- function(sequence, type=c("b", "y"), z=1,
modifications=c(C=57.02146),
neutralLoss=TRUE, verbose=TRUE) {
## TODO: this information should inform the user about a major API change
## and could be removed in MSnbase > 1.18
if (packageVersion("MSnbase") < as.package_version("1.20.0")) {
message("The mass listed in \"modifications\" is now added to the ",
"amino acid/peptide.\n",
"In MSnbase < 1.17.6 the mass was replaced. ",
"Please see '?calculateFragments' for details.")
}

type <- match.arg(type, choices=c("a", "b", "c", "x", "y", "z"), several.ok=TRUE)
type <- sort(type)
## constants
Expand Down

0 comments on commit ac44961

Please sign in to comment.