From Kurt.Hornik@ci.tuwien.ac.at  Mon Aug 20 07:15:22 2001
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Mon, 20 Aug 2001 08:15:22 +0200
Subject: [Rd] system.file("",package) (PR#1062)
In-Reply-To: <200108192302.BAA05935@pubhealth.ku.dk>
References: <200108192302.BAA05935@pubhealth.ku.dk>
Message-ID: <15232.43770.872451.726047@mithrandir.hornik.net>

>>>>> tlumley  writes:

> system.file("",package") is documented to return the root of the
> package (as it did in the past). It actually returns "" (Win98,
> R1.3.0), breaking the SJava package

> Omitting the first argument does work correctly and so is a workaround
> if the argument is explicitly "" but not if it is the value of a
> variable.

Thomas,

I think you are misreading the docs: we have

     system.file(..., package = "base", lib.loc = .lib.loc, pkg, lib)

so the package argument must be named.

I think you were caught by

	R> system.file("", "eda")
	[1] ""

but you need to do

	R> system.file("", package = "eda")
	[1] "/usr/local/lib/R/library/eda/"

-k


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] system.file("",package) (PR#1062)
Kurt Hornik