Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-10 Thread Duncan Murdoch
On 10/07/2010 10:10 PM, bill.venab...@csiro.au wrote: Well, I have answered one of my questions below. The hidden environment is attached to the 'terms' component of v1. To see this lapply(v1, environment) $coefficients NULL $residuals NULL $effects NULL $rank NULL $fitted.value

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-10 Thread Bill.Venables
Well, I have answered one of my questions below. The hidden environment is attached to the 'terms' component of v1. To see this > lapply(v1, environment) $coefficients NULL $residuals NULL $effects NULL $rank NULL $fitted.values NULL $assign NULL $qr NULL $df.residual NULL $xlevels NULL

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-10 Thread Bill.Venables
I'm still a bit puzzled by the original question. I don't think it has much to do with .RData files and their sizes. For me the puzzle comes much earlier. Here is an example of what I mean using a little session > usedVcells <- function() gc()["Vcells", "used"] > usedVcells()### the bas

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-10 Thread Duncan Murdoch
On 10/07/2010 2:33 PM, Paul Johnson wrote: On Wed, Jul 7, 2010 at 7:12 AM, Duncan Murdoch wrote: On 06/07/2010 9:04 PM, julian.tay...@csiro.au wrote: Hi developers, After some investigation I have found there can be large discrepancies in the same object being saved as an external "

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-10 Thread Paul Johnson
On Wed, Jul 7, 2010 at 7:12 AM, Duncan Murdoch wrote: > On 06/07/2010 9:04 PM, julian.tay...@csiro.au wrote: >> >> Hi developers, >> >> >> >> After some investigation I have found there can be large discrepancies in >> the same object being saved as an external "xx.RData" file. The immediate >> re

Re: [Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Dirk Eddelbuettel
On 10 July 2010 at 13:01, Dirk Eddelbuettel wrote: | | Eduardo, | | On 10 July 2010 at 19:31, Eduardo García wrote: | | Hi everybody! Could somebody help me with the following? | | | | I'm trying to run a simple Hello World code in openmp using .C function. The | | C code i have is: | | | | #

Re: [Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Dirk Eddelbuettel
Eduardo, On 10 July 2010 at 19:31, Eduardo García wrote: | Hi everybody! Could somebody help me with the following? | | I'm trying to run a simple Hello World code in openmp using .C function. The | C code i have is: | | #include | #include | #include | | void hello_omp(int *n) { |i

[Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Eduardo García
Hi everybody! Could somebody help me with the following? I'm trying to run a simple Hello World code in openmp using .C function. The C code i have is: #include #include #include void hello_omp(int *n) { int th_id, nthreads; omp_set_num_threads(*n); #pragma omp parallel private(t

Re: [Rd] Defining a method that behaves like '$'?

2010-07-10 Thread Marc Schwartz
On Jul 10, 2010, at 7:24 AM, Barry Rowlingson wrote: > On Fri, Jul 9, 2010 at 2:10 PM, Renaud Gaujoux > wrote: >> I do not want to access the slot itself but its content: a:toto would be >> a...@slot1[['toto']]. >> The thing is that I would like to have two different methods: '$' (that I >> alrea

Re: [Rd] Defining a method that behaves like '$'?

2010-07-10 Thread Barry Rowlingson
On Fri, Jul 9, 2010 at 2:10 PM, Renaud Gaujoux wrote: > I do not want to access the slot itself but its content: a:toto would be > a...@slot1[['toto']]. > The thing is that I would like to have two different methods: '$' (that I > already have) and another one to define, ideally that behaves like