Use conditonMessage() to extract the message from an error, warning, message, or other 'condition'
For more, see Hadley Wickham's book, "Advanced R": http://adv-r.had.co.nz/Exceptions-Debugging.html http://adv-r.had.co.nz/beyond-exception-handling.html Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Feb 3, 2017 at 9:36 AM, Glenn Schultz <glennmschu...@me.com> wrote: > All, > I have my tryCatch working on my function and rather than crashing I get the > error message below. However, I would just like price must be entered as a > character without the information to the right of the : Can this information > be suppressed? > > Thanks, > Glenn > > <simpleError in MortgageCashFlow(bond.id = FNAR7401, original.bal = 1e+06, > settlement.date = "08-18-2016", price = 100, PrepaymentAssumption = > PrepaymentModel(bond.id = FNAR7401, TermStructure = > TermStructure(rates.data = Curve, method = "dl"), MortgageRate = > MtgRate(), ModelTune = ModelTune(MBS(MBS.id = "3138W5GK8")), Burnout > = Burnout(MBS(MBS.id = "3138W5GK8")), PrepaymentAssumption = "MODEL")): > price must be entered as a character> > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel