similar to: [AustinJUG] Problem calling rsync from java on OSX

Displaying 20 results from an estimated 400 matches similar to: "[AustinJUG] Problem calling rsync from java on OSX"

2004 Nov 19
1
Problem calling rsync from java on OSX
rsync and ajug lists, been pulling my hair out on this one. i have some java code which uses the Process object to spawn an rsync connection in --daemon mode. the exact same command executes properly when run from outside java (i.e .on the command line) on osx. it also executes correctly from within java on linux using a similar jdk (sun 1.4.1 vs sun 1.4.2 for osx) here is example code:
2003 Nov 12
1
Talk with from Java
Hi everybody anybody knows how to talk with R like shown in the Java-Code above? Perhaps someone can help, or tell me its not possible. /* * Java_R.java * * Created on November 11, 2003, 5:36 PM */ import java.io.*; /** * * @author markus */ public class Java_R { /** Creates a new instance of Java_R */ public Java_R() { } /** * @param args the command line
2000 May 10
1
R and Java ? [forwarded]
This is of broader interest, and I'm not the expert.. ------- start of forwarded message ------- From: Cheryl J Fernandes <cferna3@uic.edu> To: maechler@stat.math.ethz.ch Subject: Re R and Java Date: Tue, 9 May 2000 13:54:35 -0500 (CDT) Hi Martin, I'm Cheryl Fernandes currently pursuing my Masters Of Computer Science at the university of Illinois, at Chicago. I have tried
2005 Jul 05
2
Java and R help
Im doing an aplication in Java and i have a program made in R what i want to launch with Java. I have the following instructions: Runtime r = Runtime.getRuntime(); try { System.out.println ("Llamada a R..."); p = r.exec(sRutaR); } catch (IOException e) { System.out.println ("Error lanzando R: " +
2013 Nov 11
2
problem using rJava with parallel::mclapply
Dear all, I got an issue trying to parse excel files in parallel using XLConnect, the process hangs forever. Martin Studer, the maintainer of XLConnect kindly investigated the issue, identified rJava as a possible cause of the problem: This does not work (hangs): library(parallel) require(rJava) .jinit() res <- mclapply(1:2, function(i) {
2007 Apr 04
0
[LLVMdev] For a small help
Hi Ferad, On Wed, 2007-04-04 at 19:48 +0200, Ferad Zyulkyarov wrote: > Hi, > > I want to ask for a small help for creating an instruction that calls > e member method of an object. I suppose that this is not a headache > but I am impatient in learning :) I would be very thankful if you can > show me an example snippet code that does this in LLVM. Below is > described my
2009 Apr 12
1
Simple class with an automatic printing issue
I don't understand the following behavior for a simple S3 class. The auto-printing at the command line doesn't behave as I expect. I'm probably missing something, but it might be a bug. > print.testClass <- function(x, ...) cat("Class:", class(x), ":", x, "\n") > structure(1, class = "testClass") Class: testClass : 1 > print(1 *
2009 May 18
0
how to monkeypatch Hash's = method, revisted
So google for a solution to this problem and found myself here: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/eaa34998a74831b4/58b80fe0d4eadb1a?lnk=gst&q=+how+to+monkeypatch+Hash%27s+%5B%5D%3D+method+#58b80fe0d4eadb1a But while reading, and admittedly not quite getting the solution, I had a bright moment to balance out the stupid moment, realising that [] = already has
2007 Apr 04
0
[LLVMdev] For a small help
Ferad Zyulkyarov wrote: > Hi, > > I want to ask for a small help for creating an instruction that calls > e member method of an object. I suppose that this is not a headache > but I am impatient in learning :) I would be very thankful if you can > show me an example snippet code that does this in LLVM. Below is > described my case. > > Let's say I have a class
2012 Aug 23
1
[LLVMdev] Error: "Recursive compilation" when run lli
I edit two files named test.h,test.cpp as follow: ///////////////test.h////////////////////////////////////////////////////////////////class TestClass { private: int fTotal; public: TestClass(); ~TestClass(); };///////////test.cpp/////////////////////////////////////////////////////////////////////////////#include "test.h" TestClass::TestClass() { fTotal = 2; }
2008 Oct 31
2
Problem of running R console from Java on linux box
Hi the list: I can not create R process from Java application with my linux box, the process never was created, or just terminated immediately after I called Runtime.getRuntime().exec(...) The command lines I have tried are(the paths are all correct): "/bin/sh /usr/bin/R" "/bin/sh -c /usr/bin/R" "/usr/lib/R/bin/exec/R"(also set R_HOME=/usr/lib/R) I
2009 Sep 15
2
S3 objects in S4 slots
Hello, I am the maintainer of the stringkernels package and have come across a problem with using S3 objects in my S4 classes. Specifically, I have an S4 class with a slot that takes a text corpus as a list of character vectors. tm (version 0.5) saves corpora as lists with a class attribute of c("VCorpus", "Corpus", "list"). I don't actually need the
2012 Aug 24
0
[LLVMdev] what is "Recursive compilation detected" error?
I edit two files named test.h,test.cpp as follow: ///////////////test.h//////////////////////////////////////////////////////////////// class TestClass { private: int fTotal; public: TestClass(); ~TestClass(); }; ///////////test.cpp///////////////////////////////////////////////////////////////////////////// #include "test.h" TestClass::TestClass() { fTotal = 2; }
2011 Feb 03
2
Creating a reference class object from a class definition in a package fails
Hi, I'm trying to create a package that contains reference class definitions from which users can create reference objects, but there seems to be something awry. My toy example creates an empty package via package.skeleton('TestClass') to which I add the following R code: TestClass <- setRefClass('TestClass',fields=c('name')) Unfortunately my R console output
2010 May 12
1
slot assignment in S4 classes
Hi R friends,   I'm still studying S4 classes and I have a question about slot assignment. Why would I have to use a special setter method [example 2 below] if I can assign data to a slot directly when I call new() [example 1 below]?   ## first way to do it (the idiosyncratic way?) setClass(Class = "TestClass", representation = representation(myDf = "data.frame"))
2004 Apr 21
2
calling R from java
Hello, I need to call R from a java(swing) application. I manage to do it with something like : Process p = Runtime.getRuntime().exec("R --slave") OutputStreanWriter o = new OutputStreamWriter(p.getOutputStream()) o.wrote("...") ... etc but at the end no .Rdata file has been created and there are some data I don't want to reload each time (for time execution reasons).
2012 Dec 12
1
Lost in S4 and S3 classes
Hi all, this is my first post in R devel? sorry if I lost some of the guidelines. Anyway this is my problem: Version: R version 2.15.2 (2012-10-26) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) I want to make an S4 class that use the output object of the function of nls.lm as a slot: setOldClass("nls.lm") setClass ( Class="TestClass",
2010 Oct 28
2
Reference Classes: Generalizing Reference Class Generator objects?
Is it possible to override the $new(...) in the reference class generator? I have tried adding a "new" method to the methods of the class, but that is obviously not correct. I have also tried adding it to the class generator, but the class generator still uses the default constructor. As a simple example, this is the current interface: TestClass <- setRefClass
2013 Oct 16
1
Internally accessing ref class methods with .self$x is different from .self[['x']]
When a reference class method is accessed with .self$x, it has different behavior from .self[['x']]. The former copies the function to the object's environment (with some attributes attached), and the latter just return NULL (unless it has already been accessed once with .self$x). Is this how it's supposed to work? Here's an example that illustrates:
2012 Feb 02
1
possibly Error in R version 2.12.1 (2010-12-16)
Hi, the following Code demonstrates an possibly Error in R (or you can explain me, why this happens, thanks in advance) Code: ##################################### testClass <- function( stackData= c()) { list( write= function( ...) { sChain= "" for( s in c( stackData, ...)) { sChain= paste( sChain, '"', sub( '"',