Automatic argument vectorization, default Java exception and warnings handling for XLConnect
Performs automatic argument vectorization, provides default Java exception and warnings handling for XLConnect.
xlcCall(obj, fun, ..., .recycle = TRUE, .simplify = TRUE)
Name of Java method to be called.
Arguments to the Java method to be called.
TRUE(default), arguments passed through … will be automatically vectorized using
funwill be called the appropriate amount of times. If
FALSE, no vectorization will take place in R and
funwill be called once only. This may be used to implement vectorization on the Java side.
Only relevant if
.recycle = TRUE. Argument to internal
mapplyto set if there should be an attempt to reduce the result to a vector or matrix.
This function makes use of
mapply to perform automatic argument vectorization. Non-atomic arguments are
wrapped in a list using
wrapList first. The list of the resulting arguments is then being vectorized
mapply before the specified function is being called. The function call is wrapped with
jTryCatch to catch Java exceptions. Further, any warnings are retrieved from the Java side and are logged
via R's standard warning mechanism.
Result of the specified function by calling it with the vectorized argument list.