similar to: Pause in non-interactive mode

Displaying 20 results from an estimated 20000 matches similar to: "Pause in non-interactive mode"

2004 Feb 08
2
parsing numbers from a string
Dear R-help members, I have several large data sets from certain simulations I did and now I want to plot the results nicely. I don't know anything about the size of the x and y values in advance. Plotting these values is not a problem. However, I want to add errorbars (errbar in the Hmisc package). 1) For this I'm factoring the data (xdata00 varies from 0 to max(xdata00)) xfactor00 =
2005 Jan 24
2
parameter couldn't be set in high-level plot() function
Dear R users, I am using function bandplot from the gplots package. To my understanding (viewing the source of bandplot) it calls function plot (add = FALSE) with the same parameters (except for a few removed). I would like to give extra parameters 'xlab' and 'ylab' to function bandplot, but, as can be seen below, that raises warnings (and the labels do not show up at the end).
2006 Nov 14
1
greatest common substring
Dear R-members, Suppose I have a vector with the following strings: V = c("Welfare_Group_1024", "Welfare_Group_1536", "Welfare_Group_160") I want to 'automatically generate a nice y-axis label for this data. A good candidate is something close to "Welfare Group". Is there an easy way to compute something close to the greatest common
2005 Jan 31
2
Extracting a numeric prefix from a string
Hi Does anyone know if there is a function similar to as.numeric that will extract a numeric prefix from a string as in the following examples? x<-c(3, "abc", 5.67, "2.4a", "6a", "6b", "2.4.a", 3, "4.2a") df.x<-data.frame(Code=x) x.str<-levels(df.x[,1]) # required function result 2.40 3.00 4.20 5.67 6.00 NA Thanks Mike White
2016 Nov 10
2
Memory leak with tons of closed connections
Dear All, I'm developing an R application running inside of a Java daemon on multiple threads, and interacting with the parent daemon via stdin and stdout. Everything works perfectly fine except for having some memory leaks somewhere. Simplified version of the R app: while (TRUE) { con <- file('stdin', open = 'r', blocking = TRUE) line <- scan(con,
2018 May 28
2
readLines function with R >= 3.5.0
>>>>> Martin Maechler >>>>> on Mon, 28 May 2018 10:28:01 +0200 writes: >>>>> Ralf Stubner >>>>> on Fri, 25 May 2018 19:18:58 +0200 writes: >> Dear all, I would like to draw you attention to this >> question on SO: >>
2008 Aug 30
1
Saving 3d objects vs. pausing in non-interactive (scripted) mode
I am using the RGL library in scripted (non-interactive) mode, but wish to give the data analyst an opportunity to exam the 3D plots. The "data analysts" understand the data, but not R. My intent is to provide simple Windows (XP) batch files that call R and automatically pass scripts to it, and thus permit the analyst to easily access graphics without having to cut and paste commands
2018 Jun 12
2
readLines function with R >= 3.5.0
Hi: I have also just stumbled into this bug. Unfortunately, I can not change the data my program receives from stdin. My code runs in a larger system and stdin is sent to a Docker container running my R code. The protocol is I read a line, readLines("stdin", n=1), do some actions, send output on stdout, and wait for the next set of data. I don't have control over this protocol, so
2018 May 25
2
readLines function with R >= 3.5.0
Dear all, I would like to draw you attention to this question on SO: https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r Based on the OP's code I used the script ####################################### create_matrix <- function() { cat("Write the numbers of vertices: ") user_input <- readLines("stdin", n=1) user_input <-
2018 Jun 13
2
readLines function with R >= 3.5.0
>>>>> Michael Lawrence >>>>> on Tue, 12 Jun 2018 19:27:49 -0700 writes: > Hi Jen, This was already resolved for R 3.5.1 by just > disabling buffering on terminal file connections like stdin. and before R 3.5.1 exists, *and* as the change is also not yet available in R patched (!) this means using a version of "R-devel", e.g. for Windows
2010 Nov 22
4
Wait for user input with readline()
Hello, I am trying write a script that includes a prompt for user input using readlines() and was told that folks at R-devel might be able to help. I am running into the problem that when I run readlines() as a single line the prompt works perfectly, but when I try to run a block of code which includes the readline function, the script doesn't wait for the user input. I have seen this
2018 Jun 19
1
readLines function with R >= 3.5.0
Hi Michael: I can confirm Martin's comment. I tested my software with r-devel (r74914) and it works, while with r-patched (r74914) it does not work (it hangs, as it did in R 3.5.0). I apologize for it taking so long for me to test this, but is there any chance this fix could make into R 3.5.1? Thanks. Jen. On Wed, Jun 13, 2018 at 6:24 AM, Michael Lawrence <lawrence.michael at gene.com
2014 Feb 14
2
contrib.url in non-interactive mode
Hi, is it intended that one cannot install packages in non-interactive mode, without explicitly setting a CRAN mirror (see below)? Couldn't a default mirror be used in that case? Thank you. Bests, Renaud $ Rscript --vanilla -e "install.packages('whatever')" Installing package into '/home/renaud/R/x86_64-pc-linux-gnu-library/3.0' (as 'lib' is unspecified)
2009 Aug 16
1
: source R-script interactively outside R
DeaR list, let us assume we have stored a couple of functions in 'test.R'. Is it possible to run R CMD BATCH "test.R" or R --file="test.R" interactively and if yes how? A better formulated question sounds like this: how can I source "test.R" interactively OUTSIDE R? Another clarification try: I want to fix the "<my-command> in non-interactive
2009 Oct 27
2
User input when running R code in batch mode
Hi I've been stumbling over a simple issue that undoubtedly has an easy solution. I need to have some way for a user to enter some values into a data frame which R will then work on. I know that data entry should ideally be done otherwise and I should use R only for the computation, but R's data manipulation abilities makes it efficient for me to write the entire code in it. When I ran
1999 Dec 03
2
R as Unix-Filter and Streams for DataMining
Hi, i want to use R as a filter in a Unix-like way. So i want to start it with producerTool | R --no-save --no-restore --slave < Rscript | anotherConsumerUnixTool inside the Script i put the results to stdout, works fine, but how to read in from stdin? Its obvious that i have to source the Rscript in a different way. Any Hints? My second question is, if there is a possibility to use
2010 Oct 14
1
Using Rscript to read from a file
Hello, I have this script which will be invoked as Rscript a.r < a.r a.r follows #!/usr/bin/Rscript --vanilla f=file("stdin") while(TRUE){ y=readLines(f,n=1,warn=TRUE) if(length(y)==0) break else print(y) } But it only reads one line from a.r How can I read line by line from standard input? Thank you Saptarshi
2018 Sep 12
1
Bug 17432 in readLines with R >= 3.5.0 still a problem
Bug 17432 (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17432) is still a problem when using pipes for IPC. The bug is evident when calling R from another process and trying to communicate via StdIn. R will buffer the input and not read lines until the buffer is exceeded or StdIn is closed by the sending process. This prevents interactive communication between a calling process and a
2018 Jul 26
2
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, 26 Jul 2018, G?bor Cs?rdi wrote: > On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson > <b.rowlingson at lancaster.ac.uk> wrote: >> >> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: >>> I am trying to control a background R session, connected via a fifo / >>> named pipe. >> >> Is the fifo
2018 Sep 14
1
Bug 17432 in readLines with R >= 3.5.0 still a problem
Michael: I don't see any comments on Bug 17432 ( https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17432) later than June 1, 2018. Would you please supply a link pointing to the followup to this discussion on bugzilla? Thanks. Jen. > On Thu Sep 13 14:14:46 CEST 2018 Michael Lawrence wrote: > > Thanks, I responded to this on bugzilla. > On Wed, Sep 12, 2018 at 9:04 AM Chris