[R] seq unexpected behavior

2006-07-26 Thread Vries, Han de
seq(0.1, 0.9 - 0.8, by = 0.1) gives the following error message:

Error in seq.default(0.1, 0.9 - 0.8, by = 0.1) : 
wrong sign in 'by' argument

but seq(0.1, 0.8 - 0.7, by = 0.1) gives
[1] 0.1
(no error message)

Why do I get an error message in the first case?
Han



 sessionInfo()
R version 2.2.1, 2005-12-20, i386-pc-mingw32

attached base packages:
[1] methods   stats graphics  grDevices utils
datasets 
[7] base   

(NB I also tried version 2.3.1 and got the same result - both versions
are precompiled)
  
 Sys.getlocale()
[1] LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252




This email message is for the sole use of the intended recip...{{dropped}}

__
R-help@stat.math.ethz.ch 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, minimal, self-contained, reproducible code.


[R] possible to impose limit on R's use of resources?

2006-03-10 Thread Vries, Han de
When I run some large optimizations in R under Windows it puts a heavy
load on the CPU, which makes other applications that run at the same
time very slow. Is it possible to instruct R to be less aggressive in
its use of computer resources, so I can use my computer for other
purposes while running R (probably considerably slower) in the
background?

Han de Vries





This email message is for the sole use of the intended recip...{{dropped}}

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] possible to impose limit on R's use of resources?

2006-03-10 Thread Vries, Han de
Thank you. Your suggestion works perfectly.
Han 

-Original Message-
From: Duncan Murdoch [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 2:49 PM
To: Vries, Han de
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] possible to impose limit on R's use of resources?

On 3/10/2006 4:42 PM, Vries, Han de wrote:
 When I run some large optimizations in R under Windows it puts a heavy
 load on the CPU, which makes other applications that run at the same
 time very slow. Is it possible to instruct R to be less aggressive in
 its use of computer resources, so I can use my computer for other
 purposes while running R (probably considerably slower) in the
 background?

No, but you should be able to tell Windows to run it at a lower 
priority.  Open the Task Manager, select R among the applications and 
then use the right mouse button to Go To Process (or just select it 
among the processes), then use the right mouse button to set priority to

below normal or low.  I'm not sure what privileges you need to do 
this; it's possible you may need to do it as an admin.

Duncan Murdoch





This email message is for the sole use of the intended recip...{{dropped}}

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html