similar to: Question Regarding 'pipe'

Displaying 20 results from an estimated 20000 matches similar to: "Question Regarding 'pipe'"

2005 Feb 01
1
Process to both write to and read from (pipe/fork)?
Dear all, I would like to start a process from an R program in such a way that I can both feed input into the process and read the process's output. It seems that in R, I can have a pipe for writing into another process's input or a pipe for reading from another process's output, but not both. Doing both necessitates forking, such that the child can start the external process and
2005 Feb 01
1
Process to both write to and read from (pipe/fork)?
Dear all, I would like to start a process from an R program in such a way that I can both feed input into the process and read the process's output. It seems that in R, I can have a pipe for writing into another process's input or a pipe for reading from another process's output, but not both. Doing both necessitates forking, such that the child can start the external process and
2005 Apr 01
2
about get stdout from other program
Dear all R-helper, if I want to use stdout from other language as my R program input ,which is the best way for design the API,using Pipe function or produce a temporary file,using scan function to read the file ? thanks Michael
2005 Apr 12
5
How allocate STRSXP outside of gc
Hi, I am trying to figure a way to allocate a string SEXP so that gc() won't ever collect it. Here is a little bit of a background. Suppose I want to write a .Call-callable function that upon each call returns the same value, say mkChar("foo"): SEXP getFoo() { return mkChar("foo"); } The above implementation doesn't take advantage of the fact that
2005 Mar 02
1
R 2.1.0 scheduled for April 18
The release schedule has now been set with a release date on April 18. The detailed procedure can be found at http://developer.r-project.org/ (it is not quite there yet, but will appear after a short propagation delay.) The main point for non-developers is that we start making alpha tarballs on March 21 and beta tarballs on April 4. Only very simple and/or critical bugs are fixed in the last
2005 Sep 14
1
Long lines with Sweave
I have used Sweave a lot the latest year, but never really used any long function calls. If I have code which look like this ------------------------------------------------------------- gof <- benthic.flux(ID="Gulf of Finland", meas.conc=conc, bw.conc=bw.conc, time=times,
2006 Jul 13
2
VERY TINY question: missing function to clear the console?
Hi, for presentation purposes I would like to clear to whole console window (like in a UNIX terminal: 'clear'). Is there such a function? If not, I could image that is not too hard to write such a function. Cheers, Hans
2008 Jun 09
2
Plot timer in a for loop
Hello, This code works fine but is so fast I can't see anything but the last plot. for (i in nrow(X)){ plot(as.numeric(d[i,])) } I'd like to view a plot every 500 milliseconds, nrow(X) = 400. How? Thanks -- View this message in context: http://www.nabble.com/Plot-timer-in-a-for-loop-tp17741975p17741975.html Sent from the R help mailing list archive at Nabble.com.
2006 May 19
2
"Pipelining" programs in R
Hello... I would like to use R for 'pipelining' data among several programs. I'm wondering how I can use R to call another program, feed that program a set of parameters, and retrieve the output. E.g., I have an executable that, when opened, prompts the user to enter a set of parameters. The program then executes & prompts the user for the name of an output file. I need to
2005 Apr 06
2
Precision
How precise is R numerically? For example I wrote the following function for calculating the volume of the ball inscribed in the unit cube in m dimensions. In order to see what happens in 40 dimensions, I created an output of 24 digits. But how many are precise? Thanks Josef Eschgf?ller Ferrara --------------------------------------- Vol = function (m) {if (m<=1) 1 else Vol(m-2)*pi/(m+m)}
2006 Dec 15
2
fork package problem
I have been using the fork package on a cluster to spawn jobs. I have noticed that I end up with many "R defunct" (zombie) processes following the use of fork that do not die completely until I close down R. Initially, I thought it may be my code but I ran the example from the latest fork package (see code below) on R.2.3.1 and ended up with the same problem. The code from the
2005 Apr 14
2
Printing integers in R "as is"
Hi, I am using the following command to print to a file (I omitted the file details): cat( paste( paste(orientation, start, end, names,"\n"), paste(start, end, "exon\n"), sep="")) where "orientation" and "names" are character vectors and "start" and "end" are integer vectors. The problem is that R coerce the integer vectors
2005 Dec 08
3
scoping issues?
Can anyone please help me understand whats happening here? Thanks Tom getAmpRatio<-function(v_amps){ #calculates the amplitude ratios between the 3 largest amps and the rest bigamp<-0 map<-rep(TRUE,length(v_amps)) for(iLoc in 1:3){ bigamp<-bigamp+max(v_amps) map[which.max(v_amps)]<-FALSE v_amps<-v_amps[map]
2005 Apr 12
2
R as programming language: references?
Hi All, I am looking for references on R as a programming language (apart form the standard R-lang.pdf and the other manuals), reference that would cover _in_depth_ things like loops, code optimisation, debugging tools etc... and is as up-to-date as possible. Can anyone suggest any book or other reference apart from the "green book" and the V&R "S-programming"? Cheers,
2005 Feb 10
3
Using a number as a name to access a list
Hi Dumb question time again, for which I apologise. I have a variable that contains the following numerical text "04010". This is the name to access a list: > as.list(KEGGPATHID2NAME)$"04010" [1] "MAPK signaling pathway" Marvellous! Except I want to do that when "04010" is assigned to a variable called path and I can't figure out how to do it!
2005 Jan 11
4
thanks
Dear all, Thanks to those 3 people who sent me answers to my question. Got the problem solved. Great! Now, another question of mine is: I would like to run an R script from the Linux prompt. Is there any way possible to do this? The reason is, the calculation that I'm doing takes a few hours, and I would like to automatize it. Or does it mean that I have to run source within the R
2008 Oct 30
2
"A critique of R and S-PLUS"
Dear all, The other day I stumbled on this article, "A critique of R and S-PLUS" [1], and got curious on whether the points outlined are (still) valid. The article is quite old, dating 2004, but was updated several times. Regards, Liviu [1] http://fluff.info/blog/arch/00000041.htm -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write?
2008 Mar 25
5
Thinking about using two y-scales on your plot?
Please read this first: http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf It's a reasoned discussion of why it's a bad idea and proposes some alternative methods. Another good article is: K. W. Haemer. Double scales are dangerous. The American Statistician, 2(3):24?24, 1948. People have been advising dual-axis plots for (at least) 60 years! Hadley
2005 Feb 17
4
Getting *types* of arguments?
Hello world, short question: is there a possibility to get a list of arguments of a function *with* variable/parameter types? formals() gives me the names of the parameters, but says nothing about the parameter type it expects (I know I can always use the help function). I would like somthing like $x: vector or data.frame... Thanks in advance... Georg -- Georg Hoermann, Fachabteilung
2005 Mar 22
5
r under linux: creating high quality bmp's for win users
Hi I produce graphics with R under linux, but my collaborators often use windows and cannot import eps pics e.g. in msword what is the standard way to get e.g. bmp's with the same quality as eps. going the way: creating eps, convert eps2bmp using 'convert' doesn't yield good enough bmp's thanks for a short hint cheers christoph