Login  Register

Callability Type problem, QuantLib SWIG R

Posted by jjjkkk on Mar 23, 2016; 4:08pm
URL: http://quantlib.414.s1.nabble.com/Callability-Type-problem-QuantLib-SWIG-R-tp17358.html

Hi,

I have created a QuantLib-SWIG R (1.7) on linux. It can be used to price options and fixed rate bonds. However, when I am trying to price a callable bond, I have the following issue:

> myPrice <- CallabilityPrice(100.0, "Clean")  # no problem
> Callability(myPrice, "Call", callableDate)  # having issue:

Error in get(paste(".__E__", type, sep = "")) :
  object '.__E___Callability__Type' not found

What's is the syntax for Callability::Type::Call in R?

Thank for your help.

jk.