R/AARule.R

setClass("Rule", representation(math = "expression"), contains = c("SBase", "VIRTUAL"))

 setGeneric("math", function(object) standardGeneric("math"))
setMethod("math", "Rule", function(object) object@math)

 setGeneric("math<-", function(object, value) standardGeneric("math<-"))
setReplaceMethod("math", "Rule", function(object, value) {
  object@math <- asMath(value)
  object
})

Try the rsbml package in your browser

Any scripts or data that you put into this service are public.

rsbml documentation built on Nov. 8, 2020, 8:09 p.m.