Hi John,
thanks for the pointer to promptAll()! Judging by the description
of your function, it seems to be exactly the thing I've searched for.
Well, this is yet another reason to be looking forward to your new book.
(When will it be in the stores?)
Daniel
John Chambers schrieb:
> Daniel,
>
On Mon, 14 Apr 2008, Tobias Verbeke wrote:
Dear list,
Is there an exact formula / safe rule of thumb that allows
one to express the value of --max-ppsize as a function of
the value of getOption("expressions") ?
There is none: it entirely depends on what you are doing.
But you would expect pp
Full_Name: Arnaud Bergeron
Version: 2.6.2
OS: Mac OS X 10.5.2
Submission from: (NULL) (69.157.224.197)
When I run the following loop
repeat { plot(seq(5), seq(5)) }
the memory consumed by the process goes up by a small amout each time. I tried
this with the quartz() and pdf() output devices. O
Is there Emacs support for creating a NEWS file for a package? If so where
could I find it? I had a look at the GNU coding standards on documenting
programs. It has a bit on Emacs and Change Logs but not concerning a NEWS
file as far as I could see.
David Scott
___
Dear All,
Thanks a lot for your helpful comments (e.g., NAMED, ExpressionSet,
DNAStringSet).
Observations and questions ::
ooo For a data.frame dd and a list ll with same contents to being with,
the following operations show significant difference in the maximum memory
usage column of the gc
Berwin A Turlach <[EMAIL PROTECTED]> wrote: G'day Yu,
On Sun, 13 Apr 2008 23:48:33 -0700 (PDT)
Yuan Jian wrote:
> what should I do when I want to get a sequence for operate && or ||?
Read `help("&&")' and then use & and |. :)
HTH.
Cheers,
Berwin
=== Full address =
On Mon, 14 Apr 2008, Vadim Organovich wrote:
> This is good, thanks!
>
> I'd like to be able to make sure that the resource is released in conrolled
> fasion rather than at some arbitrary gc() call time. Will the following trick
> achieve the goal:
>
> foo <-function(whatever) {
> on.exit(gc())
On Mon, 14 Apr 2008, Stephen Milborrow wrote:
> > Le sam. 12 avr. ? 12:47, carlos martinez a ?crit :
> > Looking for a simple, effective a minimum execution time solution.
> >
> > For a vector as:
> >
> > c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1)
> >
> > To transform it to the following vector wi
On 14/04/2008 5:10 PM, Vadim Organovich wrote:
> This is good, thanks!
>
> I'd like to be able to make sure that the resource is released in conrolled
> fasion rather than at some arbitrary gc() call time. Will the following trick
> achieve the goal:
>
> foo <-function(whatever) {
> on.exit(gc
On Apr 14, 2008, at 4:22 PM, Stephen Milborrow wrote:
>> Le sam. 12 avr. à 12:47, carlos martinez a écrit :
>> Looking for a simple, effective a minimum execution time solution.
>>
>> For a vector as:
>>
>> c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1)
>>
>> To transform it to the following vector w
This is good, thanks!
I'd like to be able to make sure that the resource is released in conrolled
fasion rather than at some arbitrary gc() call time. Will the following trick
achieve the goal:
foo <-function(whatever) {
on.exit(gc())
## arrange for an external pointer, don't know how yet
..
Daniel Sabanés Bové wrote:
> Hi John,
>
> thanks for the pointer to promptAll()! Judging by the description
> of your function, it seems to be exactly the thing I've searched for.
>
> Well, this is yet another reason to be looking forward to your new book.
> (When will it be in the stores?)
Accordi
On 14/04/2008 4:33 PM, Vadim Organovich wrote:
> Dear R-devel,
>
>
>
> Some time ago I started a thread that boiled down to clean-up actions after
> non-local exits in R, see below. I wonder if there has been any progress on
> this? R-ext 2.6.1 doesn't say much on the subject.
>
>
>
> How,
Dear R-devel,
Some time ago I started a thread that boiled down to clean-up actions after
non-local exits in R, see below. I wonder if there has been any progress on
this? R-ext 2.6.1 doesn't say much on the subject.
How, for example, do people deal with a situation where their C (C++) func
Le sam. 12 avr. à 12:47, carlos martinez a écrit :
Looking for a simple, effective a minimum execution time solution.
For a vector as:
c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1)
To transform it to the following vector without using any loops:
(0,0,1,0,1,2,3,0,0,1,2,0,1,0,1,2,3,4,5,6)
Here is
Dear list,
Is there an exact formula / safe rule of thumb that allows
one to express the value of --max-ppsize as a function of
the value of getOption("expressions") ?
?options tells "If you increase it [the expressions option],
you may also want to start R with a larger protection stack".
Motiv
Full_Name: Bill Dunlap
Version: 2.8.0 Under development (unstable) svn 45325
OS: Linux
Submission from: (NULL) (76.28.245.14)
It is difficult to write wrapper functions
for unix.time(expr) because it uses the idiom
expr <- substitute(expr)
eval(expr, envir=sys.parent())
to evaluate the in
Hello,
I got bungled up by the fact that an infinite POSIXct object is
represented by NA, but is not, in fact, NA. While an infinitely large
POSIXct object seems strange, perhaps R should use the convention of
representing it as Inf rather than NA to avoid any confusion.
Cheers,
Robert
> x <- as.
Daniel,
Check out the promptAll() function in the SoDA package on CRAN.
(Because it was written as an example for my new book, it's not the
fanciest imaginable, but seems to work OK.)
John
Daniel Sabanés Bové wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hi all,
>
> I wanted
Hi Gopi
"Gopi Goswami" <[EMAIL PROTECTED]> writes:
> Hi there,
>
>
> Problem ::
> When one tries to change one or some of the columns of a data.frame, R makes
> a copy of the whole data.frame using the '*tmp*' mechanism (this does not
> happen for components of a list, tracemem( ) on R-2.6.2 says
I would be interested to see how the following approach compares to the other
suggestions:
> x <- c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1)
> test <- c(0,0,1,0,1,2,3,0,0,1,2,0,1,0,1,2,3,4,5,6)
> out <- Reduce( function(x,y) x*y + y, x, accumulate=TRUE )
> all.equal(out,test)
[1] TRUE
For the se
Gopi Goswami wrote:
> Hi there,
>
>
> Problem ::
> When one tries to change one or some of the columns of a data.frame, R makes
> a copy of the whole data.frame using the '*tmp*' mechanism (this does not
> happen for components of a list, tracemem( ) on R-2.6.2 says so).
>
>
> Suggested solution ::
Gopi Goswami wrote:
> Hi there,
>
>
> Problem ::
> When one tries to change one or some of the columns of a data.frame, R makes
> a copy of the whole data.frame using the '*tmp*' mechanism (this does not
> happen for components of a list, tracemem( ) on R-2.6.2 says so).
>
>
> Suggested solution ::
Hi there,
Problem ::
When one tries to change one or some of the columns of a data.frame, R makes
a copy of the whole data.frame using the '*tmp*' mechanism (this does not
happen for components of a list, tracemem( ) on R-2.6.2 says so).
Suggested solution ::
Store the columns of the data.frame
Please report bugs in contributes packages to the package maintainer
(CCing), not to R-bugs.
Best,
Uwe Ligges
[EMAIL PROTECTED] wrote:
> Full_Name: Yasuhiro Nakajima
> Version: 2.6.1
> OS: WinXP SP2
> Submission from: (NULL) (202.237.255.13)
>
>
> Dear all,
>
> I noticed the following behavi
Use the vector versions: & and |
Cheers,
Simon.
On Sun, 2008-04-13 at 23:48 -0700, Yuan Jian wrote:
> Hello there,
>
> I got a small problem about logical calculation:
> we can get a sequene from a+b as below:
>
> > a<-c(1,2)
> > b<-c(3,4)
> > a+b
> [1] 4 6
>
> but when the s
The bug is yours: you are using Cygwin Perl, not a Windows Perl.
This is specifically warned about in the manual:
@strong{Beware}: you do need a @emph{Windows} port and not the Cygwin
one. Users of 64-bit Windows can use a Win64 Perl (such as that from
ActiveState) if they prefer.
You
Has your environment variable path been set correctly?
It's been a while that I'm not using R under windows but remember had
experienced the same error. I remember that I had to put many paths as
environment variable to build R packages properly.
Best,
Mathieu
[EMAIL PROTECTED] a écrit :
> Hi
Use just "&" or "|", these perform element wise,
> c(1,2) && c(0,1)
[1] FALSE
> c(1,2) & c(0,1)
[1] FALSE TRUE
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Has your environment variable path been set correctly?
It's been a while that I'm not using R under windows but remember had
experienced the same error. I remember that I had to put many paths as
environment variable to build R packages properly.
Best,
Mathieu
[EMAIL PROTECTED] a écrit :
> Hi
Well, you just have to use "&", "|" instead of "&&", "||".
Best,
Mathieu
Yuan Jian a écrit :
> Hello there,
>
> I got a small problem about logical calculation:
> we can get a sequene from a+b as below:
>
> > a<-c(1,2)
>
>> b<-c(3,4)
>> a+b
>>
> [1] 4 6
>
> but when th
31 matches
Mail list logo