Displaying 1 result from an estimated 1 matches for "pathtosav".
Did you mean:
pathtosave
2009 Mar 26
0
Using JRclient in java application
...uot;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[] buf = new byte[1024];
int n = 0;
while ((n = ris.rea...