Re: [Rd] How to build a list with missing values? What is missing, anyway?

2012-10-05 Thread Bert Gunter
Why not just use the list constructor: theList <- setNames(vector("list",3),letters[1:3]) ## The list components are empty = NULL, not NA) This also doesn't seem to be an R-devel topic. -- Bert On Wed, Oct 3, 2012 at 11:21 PM, Josh O'Brien wrote: > >>Say I have argnames <- c("a", "b", "c"). >

Re: [Rd] How to build a list with missing values? What is missing, anyway?

2012-10-05 Thread Bert Gunter
The R Language definition manual explains all of this. Read it. -- Bert On Thu, Oct 4, 2012 at 3:53 PM, Peter Meilstrup wrote: > On Wed, Oct 3, 2012 at 11:21 PM, Josh O'Brien wrote: >> >>>Say I have argnames <- c("a", "b", "c"). >> >From that I want to construct the equivalent of alist(a=, b=,

Re: [Rd] How to build a list with missing values? What is missing, anyway?

2012-10-05 Thread Bert Gunter
On Thu, Oct 4, 2012 at 6:31 PM, Peter Meilstrup wrote: > On Thu, Oct 4, 2012 at 6:12 PM, Bert Gunter wrote: >> The R Language definition manual explains all of this. Read it. > > I always reread that before I post to this list. > > The only relevant mention of "missing" in the R Language Definiti

Re: [Rd] identical() fails to compare isS4() to TRUE

2012-10-05 Thread Martin Morgan
On 10/04/2012 05:56 PM, Martin Morgan wrote: On 10/04/2012 04:05 PM, Duncan Murdoch wrote: On 12-10-04 5:50 PM, Martin Morgan wrote: On 10/04/2012 02:23 PM, Duncan Murdoch wrote: On 12-10-04 4:57 PM, Martin Morgan wrote: > setClass("A", "integer") > isS4(new("A")) [1] TRUE > identic

[Rd] Problems with install.packages when Ncpus > 1

2012-10-05 Thread Winston Chang
I have a Ubuntu Linux 12.04.1 machine running R 2.15.1. I'm trying to run tests building packages, so install.packages() is trying to install about about 1000 packages from source. I'm running into some strange issues that seem related to using values for Ncpus other than 1. When I use Ncpus=32, a

Re: [Rd] Problems with install.packages when Ncpus > 1

2012-10-05 Thread Prof Brian Ripley
On 06/10/2012 05:42, Winston Chang wrote: I have a Ubuntu Linux 12.04.1 machine running R 2.15.1. I'm trying to run tests building packages, so install.packages() is trying to install about about 1000 packages from source. I'm running into some strange issues that seem related to using values for