[R-pkg-devel] TryCatch messages

Glenn Schultz glennmschultz at me.com
Fri Feb 3 18:36:33 CET 2017


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>


More information about the R-package-devel mailing list