I am trying to make the google phoneNumber util from libphonenumber available as a Renjin package.
org.renjin.eval.EvalException: Cannot match arguments (character, character) to any JVM method overload:
public com.google.i18n.phonenumbers.Phonenumber$PhoneNumber com.google.i18n.phonenumbers.PhoneNumberUtil.parseAndKeepRawInput(java.lang.CharSequence,java.lang.String) throws com.google.i18n.phonenumbers.NumberParseException
public void com.google.i18n.phonenumbers.PhoneNumberUtil.parseAndKeepRawInput(java.lang.CharSequence,java.lang.String,com.google.i18n.phonenumbers.Phonenumber$PhoneNumber) throws com.google.i18n.phonenumbers.NumberParseException
at org.renjin.invoke.reflection.FunctionBinding.invoke(FunctionBinding.java:176)
at org.renjin.invoke.reflection.FunctionBinding.evaluateArgsAndInvoke(FunctionBinding.java:154)
at org.renjin.invoke.reflection.MethodFunction.apply(MethodFunction.java:58)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:58)
at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:42)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.sexp.ExpressionVector.eval(ExpressionVector.java:85)
at org.renjin.eval.Context.evaluate(Context.java:280)
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:174)
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:133)
I interpret this to mean that somehow the parameters are not converted to Strings so the correct method cannot be found.
Is there some way i can cast the character parameters (StringVectors) to java.lang.String so that the correct method that i want to call is found?