xlcCall | R Documentation |
Performs automatic argument vectorization, provides default Java exception and warnings handling for XLConnect.
xlcCall(obj, fun, ..., .recycle = TRUE,
.simplify = TRUE, .checkWarnings = TRUE, .withAttributes = FALSE)
obj |
XLConnect S4 object (e.g |
fun |
Name of Java method to be called. |
... |
Arguments to the Java method to be called. |
.recycle |
If |
.simplify |
Only relevant if |
.checkWarnings |
Whether to check for warnings registered on the underlying Java object. |
.withAttributes |
Whether the function being called returns a wrapped Java object with attributes.
If
|
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
using 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.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
wrapList
, jTryCatch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.