Displaying 2 results from an estimated 2 matches for "rfileinputstream".
Did you mean:
fileinputstream
2009 Aug 03
1
RServe - How to use 'createReference' method?
I need to input a txt, or xls, file from a client to R, using RServe.
>From what I've been reading, the best way to do this, is using the
'createReference' method, from REngine package.
But I couldn't find any documents exemplifying it's use. I got to upload a
file from java? And then? How do i refeer the file to this method?
Best Regards,
J. Daniel
--
View this message
2009 Mar 26
0
Using JRclient in java application
...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.read(buf)) != -1) {
outs.write(buf, 0...