How to return List<String> from java to R (with rjava package)? -
i know how call java code strings, integers or java objects calling list of strings ?
in document https://cran.r-project.org/web/packages/hellojavaworld/vignettes/hellojavaworld.pdf there table of how call types can find abbreviation lists.
my function in java
public list<string> getobjnames() { return this.obj; }
i need call function rstudio rjava package. r code:
list <- function (mydata){ hjw <- .jnew("fcamp/util/datareader/jsondatareader") outref2 <- .jcall(hjw, "lfcamp/input/context;", "readdata", evalstring = t, mydata) result <- .jcall(outref2, "???", "getobjnames", evalstring = false) return(result) }
have ever seen abbreviation or document supposed use instead of "???"
thanks advice :)
Comments
Post a Comment