From deepayan at stat.wisc.edu  Tue Oct  4 20:47:29 2005
From: deepayan at stat.wisc.edu (Deepayan Sarkar)
Date: Tue, 4 Oct 2005 13:47:29 -0500
Subject: [Rd] more problems when using "installWithVers"
In-Reply-To: <Pine.LNX.4.61.0510041334350.3776@gannet.stats>
References: <1abe3fa90510040450s124226a5oae8361f723002e8d@mail.gmail.com>
	<Pine.LNX.4.61.0510041334350.3776@gannet.stats>
Message-ID: <200510041347.29859.deepayan@stat.wisc.edu>

On Tuesday 04 October 2005 07:48, Prof Brian Ripley wrote:
> Tony,
>
> The problem is specific to your example:
> > install.packages("ash")
>
> ...
>
> > install.packages("ash", installWithVers=TRUE)
> > library("ash", version="1.0-9")
> > search()
>
>   [1] ".GlobalEnv"        "package:ash_1.0-9" "package:methods"
>   [4] "package:stats"     "package:graphics"  "package:grDevices"
>   [7] "package:utils"     "package:datasets"  "Autoloads"
> [10] "package:base"
>
> and lies in lattice's .onLoad (as the message says, and hence the Cc: to
> Deepayan).  That has
>
> .onLoad <- function(lib, pkg)
> {
>      library.dynam(pkg, pkg, lib )
>      lattice.options(.defaultLatticeOptions())
>      lattice.setStatus(.defaultLatticeStatus())
> }
>
> which is incorrect: it should be library.dynam("lattice", pkg, lib)
> OTOH, 'ash' has it correctly and so works.

I'll upload a fixed version. There was a related discussion a while back about 
having a PACKAGE= argument in .Call()'s, but I don't remember the details. 
What's the current recommendation?

Deepayan



[Rd] more problems when using "installWithVers"
Deepayan Sarkar