Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread Fer Arce via R-help
Hello Stephen. I am not sure of the exact details of your problem, but following the second part of your e-mail, if you accidentally print a large object in the console and do not want to wait (i.e. you want to stop printing), just press C-c C-c and it will stop it (it will stop any process ha

Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread stephen sefick
No an interrupt does not help, unfortunately. I'll just try be more careful. Stephen Sefick On Wed, Sep 11, 2024, 11:47 Ivan Krylov wrote: > В Wed, 11 Sep 2024 09:44:05 -0400 > stephen sefick пишет: > > > I am having a problem with accidentally typing an object name at the > > console that is

Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread Ivan Krylov via R-help
В Wed, 11 Sep 2024 09:44:05 -0400 stephen sefick пишет: > I am having a problem with accidentally typing an object name at the > console that is a very large list and then having to wait for it to be > printed until I can resume my work. Does it help to interrupt the process? https://www.gnu.or

[R] Stop or limit to console printing large list and so on

2024-09-11 Thread stephen sefick
Hello All: Background/setup: Editor Emacs using "isend" to send code to shell in another window. This is on Linux. I can share more of the setup if others would find it useful, but I suspect this is an option I am unaware of. Problem: I am having a problem with accidentally typing an object name

Re: [R] Stop a loop if it takes long time

2018-07-24 Thread Jeff Newmiller
Depends somewhat on what you are doing in the loop and how much of a performance hit you are willing to accept. [1] [1] https://stackoverflow.com/questions/7891073/time-out-an-r-command-via-something-like-try On July 24, 2018 3:17:41 AM PDT, Christofer Bogaso wrote: >Hi, > >Let say I am imple

[R] Stop a loop if it takes long time

2018-07-24 Thread Christofer Bogaso
Hi, Let say I am implementing a loop using for() / apply()-family etc. Now, the calculation-time within a particular loop is not fixed, means, some loop takes a long time to finish calculation, and next loop perhaps very quick to finish. I am exploring if there is any way, to check if the calcul

Re: [R] Stop R script from running, when the memory goes beyond 15.4GB

2016-11-05 Thread Ista Zahn
See man ulimit Best, Ista On Nov 5, 2016 8:11 AM, "Priya Arasu via R-help" wrote: > Hi, > I am using R 3.3.1 in RedHat Linux7 , 64bit system (16GB RAM). I > could run simulation in R package, Boolnet for 25 genes without any > problem. When I add more gene i.e. 26 genes, the system becom

[R] Stop R script from running, when the memory goes beyond 15.4GB

2016-11-05 Thread Priya Arasu via R-help
Hi, I am using R 3.3.1 in RedHat Linux7 , 64bit system (16GB RAM).  I could run simulation in R package, Boolnet for 25 genes without any problem. When I add more gene i.e. 26 genes, the system becomes slow. Simulation keeps running for more than a day. I have to stop the simulation, as it

Re: [R] Stop the notices about the r-forum

2015-12-17 Thread Sarah Goslee
On Thu, Dec 17, 2015 at 6:30 AM, bruno higa wrote: > Hey, i cant stop the emails about the forum, i delete my account and i want > it. Can you help me ? Att. > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To

Re: [R] Stop tkbind

2015-07-29 Thread jpara3
The solution is to create a new tkbind function that has not argument tkbind(img,"","") -- View this message in context: http://r.789695.n4.nabble.com/Stop-tkbind-tp4710476p4710517.html Sent from the R help mailing list archive at Nabble.com. __ R-

Re: [R] Stop tkbind

2015-07-29 Thread jpara3
Not any ideas? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Stop-tkbind-tp4710476p4710514.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see ht

[R] Stop tkbind

2015-07-28 Thread jpara3
Hi, I´m trying this example from the website(http://www.sciviews.org/_rgui/tcltk/InteractiveTkrPlot.html), but the problem is that i wnat to integrate to it an stop button that stops the tkbind. Can someone please help me? THanks!! The code->>> xCoords<-(-12

Re: [R] stop a function

2015-01-30 Thread David Winsemius
On Jan 30, 2015, at 2:20 AM, n omranian via R-help wrote: > Hi All, > I'm getting actually nuts. I don't understand the following lines in R: > Here is the data, all rows are exactly the same! Their print representation may be "exactly the same", but their internal values may differ by an amoun

Re: [R] stop a function

2015-01-30 Thread n omranian via R-help
Hi All, I'm getting actually nuts. I don't understand the following lines in R: Here is the data, all rows are exactly the same! > ord_data[pid,] c0m2 c0m4 c0m8  c0m16    c0m24    c0m48 c0p2 c0p4      c0p8   c0p16    c0p24    c0p48   c24m2    c24m4    c24m8  c24m16 1333

Re: [R] Stop R from changing matrix to numeric

2014-12-17 Thread Peter Alspach
help@r-project.org Subject: [R] Stop R from changing matrix to numeric I have the following cost function: cost<-function(x){ x[,1]*sin(4*x[,1])+1.1*x[,2]*sin(2*x[,2]) } If I send in a matrix which has MORE than one row and 2 columns, this works fine. However, if I try to do cost(t(as.mat

Re: [R] Stop R from changing matrix to numeric

2014-12-17 Thread Jeff Newmiller
as.matrix(c(1,1)) gives a matrix with only one column, but your function assumes you have at least two columns (you refer to x[,2]). Please make your examples reproducible (run it yourself in a fresh instance of R) to obtain best results with questions on this list. However, you might just be

Re: [R] Stop R from changing matrix to numeric

2014-12-16 Thread PIKAL Petr
ka Abeywardana > Sent: Wednesday, December 17, 2014 7:55 AM > To: r-help@r-project.org > Subject: [R] Stop R from changing matrix to numeric > > I have the following cost function: > cost<-function(x){ > x[,1]*sin(4*x[,1])+1.1*x[,2]*sin(2*x[,2]) > } > > If I send

[R] Stop R from changing matrix to numeric

2014-12-16 Thread Sachinthaka Abeywardana
I have the following cost function: cost<-function(x){ x[,1]*sin(4*x[,1])+1.1*x[,2]*sin(2*x[,2]) } If I send in a matrix which has MORE than one row and 2 columns, this works fine. However, if I try to do cost(t(as.matrix(c(1,1 it gives me an index error. When I tried debugging it, I found

Re: [R] stop subscribing mailing list

2014-05-21 Thread Frede Aakmann Tøgersen
: han...@purdue.edu Cc: R-help@r-project.org Emne: Re: [R] stop subscribing mailing list Then unsubscribe. On May 21, 2014 10:00 AM, "han...@purdue.edu" wrote: > Dear, > > I would like to stop to receive any email from R-help mailing list for > this email address. Thank y

Re: [R] stop subscribing mailing list

2014-05-21 Thread Steve Friedman
Then unsubscribe. On May 21, 2014 10:00 AM, "han...@purdue.edu" wrote: > Dear, > > I would like to stop to receive any email from R-help mailing list for > this email address. Thank you. > > > Mingxuan Han > > __ > R-help@r-project.org mailing list > ht

[R] stop subscribing mailing list

2014-05-21 Thread han...@purdue.edu
Dear, I would like to stop to receive any email from R-help mailing list for this email address. Thank you. Mingxuan Han __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-

Re: [R] stop a function

2014-05-15 Thread Henrik Bengtsson
king him to perform a post-mortem examination: he may be able to say what > the experiment died of. > ~ Sir Ronald Aylmer Fisher > > The plural of anecdote is not data. > ~ Roger Brinner > > The combination of some data and an aching desire for an answer does not > ensure that a

Re: [R] stop a function

2014-05-14 Thread n omranian
Tukey Van: n omranian [mailto:n_omran...@yahoo.com] Verzonden: dinsdag 13 mei 2014 22:13 Aan: ONKELINX, Thierry; r-packages-ow...@r-project.org; r-help@r-project.org; r-help-requ...@r-project.org Onderwerp: Re: [R] stop a function Hi, Another problem arised now. I got this error: Error in match

Re: [R] stop a function

2014-05-14 Thread ONKELINX, Thierry
insdag 13 mei 2014 22:13 Aan: ONKELINX, Thierry; r-packages-ow...@r-project.org; r-help@r-project.org; r-help-requ...@r-project.org Onderwerp: Re: [R] stop a function Hi, Another problem arised now. I got this error: Error in match(x, table, nomatch = 0L) : reached CPU time limit I googled it

Re: [R] stop a function

2014-05-13 Thread n omranian
ect.org] Namens n omranian Verzonden: dinsdag 13 mei 2014 14:15 Aan: r-packages-ow...@r-project.org; r-help@r-project.org; r-help-requ...@r-project.org Onderwerp: [R] stop a function Hi all, If I use a function in R which takes some parameters as an input, how can I stop this function in the

Re: [R] stop a function

2014-05-13 Thread n omranian
en body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens n omranian Verzonden: dinsdag 13 mei 2014 14:15 Aan: r-packages-ow...@r-project.org; r-help@r-project.org; r-help-requ...@r-project.org Onderwerp: [R]

Re: [R] stop a function

2014-05-13 Thread ONKELINX, Thierry
] Namens n omranian Verzonden: dinsdag 13 mei 2014 14:15 Aan: r-packages-ow...@r-project.org; r-help@r-project.org; r-help-requ...@r-project.org Onderwerp: [R] stop a function Hi all, If I use a function in R which takes some parameters as an input, how can I stop this function in the while loop

[R] stop a function

2014-05-13 Thread n omranian
Hi all, If I use a function in R which takes some parameters as an input, how can I stop this function in the while loop and try another parameter in case the function takes long time or could not converge. Actually, I'm using "penalized" function in a loop for some fixed lambdas (pre-calculat

Re: [R] Stop on fail using data manipulation

2013-05-27 Thread arun
_test test1 test2 test3 test4 test5 #1  1  test2 1 2    NA    NA    NA #2  2  test4 2 3 4 5    NA #3  3  test1 3    NA    NA    NA    NA A.K. - Original Message - From: Ala' Jaouni To: r-help@r-project.org Cc: Sent:

[R] Stop on fail using data manipulation

2013-05-27 Thread Ala' Jaouni
Hello, I have a data set with test results for multiple devices (rows). I also have an index (column) that stores the first failing test for each device. I need to remove the results for all the tests that come after the first failing test. Example of a data table: Device,first_failing_test,test

Re: [R] stop at error point in for-loop

2012-10-14 Thread Jeff Newmiller
options(error = recover) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing

[R] stop at error point in for-loop

2012-10-14 Thread mrzung
hi all: Following is simple example, for(i in 1:1000){ a<-function(i){ #some function that has an error } } What I want to know is the way to find the error point in for-loop, What "i" makes the error. is there any way to solve it instead of debugging and finding an error manually? Thanks,

[R] stop on rows where !is.na(mydata$ti_all)

2012-09-24 Thread Eric Fail
Dear R experts, I got help to build a loop but there is a bug inside it that causes one part of the mechanism to fail. It should grow once, but if keep growing on rows where $ti_all is not NA. Here is a wall of code that very crudely demonstrates the problem, there is a couple of dim() outputs a

Re: [R] stop calculation in a function

2012-05-10 Thread jeff6868
I tried your proposition Sarah (I was answering to Berend when you posted your answer). Well it seems to work! I just had to add afterwords a line to have my NAs again. I converted values = 0 by NA (numeric() in the function did the contrary for the calculation): mydata[mydata==0] <- NA At firs

Re: [R] stop calculation in a function

2012-05-10 Thread Sarah Goslee
You're moving the goal posts. If you need to deal with internal as well as terminal NA values in a particular way, it would help to have told us that up front. Please give us some sample data that illustrates what you're really trying to work with, and a full explanation of what you need to accomp

Re: [R] stop calculation in a function

2012-05-10 Thread jeff6868
Thanks for your answer too Berend. Yes you're right about x[i+1]. You answered juste before me. Well your idea of declaring all in numeric is great. It avoids my problem. But actually I also have small missing data gaps in the rest of my data (in the middle of numeric values). And one of the aim of

Re: [R] stop calculation in a function

2012-05-10 Thread Sarah Goslee
On Thu, May 10, 2012 at 8:02 AM, jeff6868 wrote: > Thank you for your reply sarah. > Well actually I don't try to access x[i+1]. The line where you saw it starts > with #. It was just try I wanted to keep (sorry I should have removed it > before posting). Sorry, I should really have more coffee b

Re: [R] stop calculation in a function

2012-05-10 Thread jeff6868
Thank you for your reply sarah. Well actually I don't try to access x[i+1]. The line where you saw it starts with #. It was just try I wanted to keep (sorry I should have removed it before posting). But I ask him to access to the next value if conditions in the loop are not verified (restart the c

Re: [R] stop calculation in a function

2012-05-10 Thread Berend Hasselman
On 10-05-2012, at 12:59, Sarah Goslee wrote: > Well, if i goes from 2 to length(x) and you try to access x[i+1], of > course odd things will happen. Why not construct the loop to > (length(x)-1) instead, so that x[i+1] is defined. > The reference to x[i+1] in a commented line so I don't think

Re: [R] stop calculation in a function

2012-05-10 Thread Sarah Goslee
Well, if i goes from 2 to length(x) and you try to access x[i+1], of course odd things will happen. Why not construct the loop to (length(x)-1) instead, so that x[i+1] is defined. Sarah On Thu, May 10, 2012 at 5:14 AM, jeff6868 wrote: > Hi dear R-users, > > I have a question about a function I

[R] stop calculation in a function

2012-05-10 Thread jeff6868
Hi dear R-users, I have a question about a function I'm trying to improve. How can I stop the function calculation at the last numeric value of my data? The problem is that the end of my data contains missing values (NAs). And the aim of my function is to compare the first numeric value with the n

Re: [R] stop messages

2011-12-09 Thread Sarah Goslee
The answer to that question appears at the bottom of each and every message posted to the list. On Thu, Dec 8, 2011 at 8:09 PM, nur mohd wrote: > Dear sir > how to stop the messages from r-help to appear in my email.tq > > __ > R-help@r-project.org mail

[R] stop messages

2011-12-08 Thread nur mohd
Dear sir how to stop the messages from r-help to appear in my email.tq __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, m

Re: [R] stop R from rounding

2011-10-20 Thread Martin Maechler
> David Winsemius > on Thu, 20 Oct 2011 01:51:28 -0400 writes: > On Oct 19, 2011, at 11:29 PM, Alyse wrote: >> Hello, >> >> I have a column in a data frame that need to be 10 digits long. As >> such: >> >> Decimal.Year >> 1 1994.25997 >> 2 1

Re: [R] stop R from rounding

2011-10-19 Thread David Winsemius
On Oct 19, 2011, at 11:29 PM, Alyse wrote: Hello, I have a column in a data frame that need to be 10 digits long. As such: Decimal.Year 1 1994.25997 2 1994.26020 However, R keeps rounding the digits. As such: Decimal.Year 1 1994.260 2 1994.260 *Is there any way to stop this

[R] stop R from rounding

2011-10-19 Thread Alyse
Hello, I have a column in a data frame that need to be 10 digits long. As such: Decimal.Year 1 1994.25997 2 1994.26020 However, R keeps rounding the digits. As such: Decimal.Year 1 1994.260 2 1994.260 *Is there any way to stop this from happening?* Here is how I

Re: [R] stop()

2011-10-12 Thread Doran, Harold
org > 801.408.8111 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Doran, Harold > > Sent: Tuesday, October 11, 2011 11:32 AM > > To: r-help@r-project.org > >

Re: [R] stop()

2011-10-11 Thread Greg Snow
g 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Doran, Harold > Sent: Tuesday, October 11, 2011 11:32 AM > To: r-help@r-project.org > Subject: [R] stop() > > Suppose I have a function, such

Re: [R] stop()

2011-10-11 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Dimitris Rizopoulos > Sent: Tuesday, October 11, 2011 10:43 AM > To: Doran, Harold > Cc: r-help@r-project.org > Subject: Re: [R] stop() > >

Re: [R] stop()

2011-10-11 Thread Doran, Harold
Thanks, Dimitris. Very helpful on something I *should* know by now. > -Original Message- > From: Dimitris Rizopoulos [mailto:d.rizopou...@erasmusmc.nl] > Sent: Tuesday, October 11, 2011 1:43 PM > To: Doran, Harold > Cc: r-help@r-project.org > Subject: Re: [R] stop()

Re: [R] stop()

2011-10-11 Thread Dimitris Rizopoulos
You could use return(), e.g., myFun <- function (x, max.iter = 5) { for (i in 1:10) { result <- x + i iter <- i if (iter == max.iter) { return(result) } } result } myFun(10, max.iter = 4) I hope it helps. Best, Dimitris On 10/11/2011 7

[R] stop()

2011-10-11 Thread Doran, Harold
Suppose I have a function, such as the toy example below: myFun <- function(x, max.iter = 5) { for(i in 1:10){ result <- x + i iter <- i if(iter == max.iter) stop('Max reached') } result } I c

[R] Stop the process

2011-09-30 Thread arunkumar1111
Hi I'm creating a sweave (Rnw) from R and running the r code inside the sweave and then creating report from sweave file using R. If any error occurs in the running R code inside the sweeve file. it should stop entire R process itself Please help me to solve this -- View this message in cont

Re: [R] Stop and call objects

2011-01-06 Thread William Dunlap
From: Sebastien Bihorel [mailto:sebastien.biho...@cognigencorp.com] Sent: Thursday, January 06, 2011 1:37 PM To: William Dunlap Cc: Henrique Dallazuanna; Sebastien Bihorel; R-help Subject: Re: [R] Stop and call objects

Re: [R] Stop and call objects

2011-01-06 Thread Sebastien Bihorel
>> From: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] On Behalf Of Henrique >> Dallazuanna >> Sent: Wednesday, January 05, 2011 9:26 AM >> To: Sebastien Bihorel >> Cc: R-help >> Subject: Re: [R] Stop and call objects >&g

Re: [R] Stop and call objects

2011-01-05 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Henrique > Dallazuanna > Sent: Wednesday, January 05, 2011 9:26 AM > To: Sebastien Bihorel > Cc: R-help > Subject: Re: [R] Stop and call objec

Re: [R] Stop and call objects

2011-01-05 Thread Henrique Dallazuanna
Try this: f <- function(x) tryCatch(sum(x),error=function(e)sprintf("Error in %s: %s", deparse(sys.call(1)), e$message)) f('a') On Wed, Jan 5, 2011 at 12:23 PM, Sebastien Bihorel < sebastien.biho...@cognigencorp.com> wrote: > Dear R-users, > > Let's consider the following snippet: > > f <-

[R] Stop and call objects

2011-01-05 Thread Sebastien Bihorel
Dear R-users, Let's consider the following snippet: f <- function(x) tryCatch(sum(x),error=function(e) stop(e)) f('a') As expected, the last call returns an error message: Error in sum(x) : invalid 'type' (character) of argument My questions are the following: 1- can I easily ask the stop f

Re: [R] stop without error message

2008-07-04 Thread Duncan Murdoch
On 7/4/2008 8:04 AM, Eric Ferreira wrote: Dear useRs How can I stop a loop without printing the 'error' message (givin by stop() , for instance) ? Just put in a break statement, e.g. > for (i in 1:10) { + print(i) + if (i > 5) break + } [1] 1 [1] 2 [1] 3 [1] 4 [1] 5 [1] 6 > Duncan Mu

[R] stop without error message

2008-07-04 Thread Eric Ferreira
Dear useRs How can I stop a loop without printing the 'error' message (givin by stop() , for instance) ? Best regards, -- Eric B Ferreira Departamento de Ciências Exatas Universidade Federal de Lavras Minas Gerais - Brasil [[alternative HTML version deleted]] _

[R] stop unwanted boxes/dialogs in tcl/tk

2008-06-17 Thread Hua Li
Hello, I have a question about tcl/tk: is there a way to stop more messagers/listchoice/etc. that are set up earlier, but are unwanted later? for example, require(tcltk) ttMain <- tktoplevel() tkwm.title(ttMain,"Question") f.fcn <- function(){ t1 <- modalDialogOK("Elicitation","What's the