From p.dalgaard at biostat.ku.dk  Thu Oct 16 21:12:38 2003
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu Oct 16 21:09:22 2003
Subject: [Rd] data() misbehaving inside a function
In-Reply-To: <x2u169ngpg.fsf@biostat.ku.dk>
References: <20031016141029.A22651@jessie.research.bell-labs.com>
	<x2u169ngpg.fsf@biostat.ku.dk>
Message-ID: <x2ptgxngih.fsf@biostat.ku.dk>

Peter Dalgaard <p.dalgaard@biostat.ku.dk> writes:

> foo <- function(pkg) eval(substitute(data(package)))
                                            ^^^^^^^
Doh. "pkg", of course.

        -p
-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] data() misbehaving inside a function
Peter Dalgaard