Displaying 1 result from an estimated 1 matches for "savefilefromserver".
2009 Mar 26
0
Using JRclient in java application
...xtArea.I've tried something like
that:
zz <- file("ex.txt", "w")
capture.output(kmeans(x, 2, 22, algorithm = "Hartigan-Wong"), file = zz,
append = TRUE)
and then get "ex.txt" file from R and rewrite it to my local file using java
method:
public void saveFileFromServer(Rconnection rConnection, String fileName,
            String pathToSave) throws Exception {
        RFileInputStream ris = rConnection.openFile(fileName);
        FileOutputStream outs = new FileOutputStream(pathToSave + "/"
                + new File(fileName).getName());
        byte...