Running examples in ‘RQuantLib-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: Bond
> ### Title: Base class for Bond price evalution
> ### Aliases: Bond plot.Bond print.Bond print.FixedRateBond summary.Bond
> ### Keywords: misc
> 
> ### ** Examples
> 
> 
> ## This data is taken from sample code shipped with QuantLib 0.9.7
> ## from the file Examples/Swap/swapvaluation
> params <- list(tradeDate=as.Date('2004-09-20'),
+                settleDate=as.Date('2004-09-22'),
+                dt=.25,
+                interpWhat="discount",
+                interpHow="loglinear")
> setEvaluationDate(as.Date("2004-09-20"))
[1] TRUE
> 
> ## We got numerical issues for the spline interpolation if we add
> ## any on of these three extra futures, at least with QuantLib 0.9.7
> ## The curve data comes from QuantLib's Examples/Swap/swapvaluation.cpp
> ## Removing s2y helps, as kindly pointed out by Luigi Ballabio
> tsQuotes <- list(d1w = 0.0382,
+                  d1m = 0.0372,
+                  fut1=96.2875,
+                  fut2=96.7875,
+                  fut3=96.9875,
+                  fut4=96.6875,
+                  fut5=96.4875,
+                  fut6=96.3875,
+                  fut7=96.2875,
+                  fut8=96.0875,
+                  # s2y = 0.037125,  ## s2y perturbs
+                  s3y = 0.0398,
+                  s5y = 0.0443,
+                  s10y = 0.05165,
+                  s15y = 0.055175)
> times <- seq(0,10,.1)
> 
> setEvaluationDate(params$tradeDate)
[1] TRUE
> discountCurve <- DiscountCurve(params, tsQuotes, times)
> 
> # price a zero coupon bond
> bondparams <- list(faceAmount=100, issueDate=as.Date("2004-11-30"),
+                    maturityDate=as.Date("2008-11-30"), redemption=100 )
> dateparams <-list(settlementDays=1,
+                   calendar="UnitedStates/GovernmentBond",
+                   businessDayConvention=4)
> ZeroCouponBond(bondparams, discountCurve, dateparams)
pure virtual method called
terminate called without an active exception
Aborted