Skip to content

SabrSwaption example now fails on current parameters #169

@eddelbuettel

Description

@eddelbuettel

CRAN emailed me as they noticed that the (old) example in help(SabrSwaption) now fails:

    > setEvaluationDate(as.Date("2016-2-16"))
    [1] TRUE
    > times<-times <- seq(0,14.75,.25)
    >
    > data(tsQuotes)
    > dcurve <- DiscountCurve(params, tsQuotes, times=times,dclegparams)
    Error in discountCurveEngine(params, tsQuotes, times, matchlegs) :
     1st iteration: failed at 1st alive instrument, pillar March 17th, 2016, maturity March 17th, 2016, reference date February 17th, 2016: Missing no-fix1M Actual/360 fixing for February 15th, 2016
    Calls: DiscountCurve -> DiscountCurve.default -> discountCurveEngine
    Execution halted

Moving the date to 2016-02-15 appears to avoid this.

@klin333 as you spent so much time and careful attention on date counters, any other suggestion you may have?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions