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
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
В 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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
: 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
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
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-
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
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
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
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
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]
] 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
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
_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:
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
options(error = recover)
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
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,
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
> >
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
> -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()
>
>
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()
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
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
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
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
>> 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
> -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
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 <-
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
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
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]]
_
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
61 matches
Mail list logo