[R] Installed directory of a package

David Scott d.scott at auckland.ac.nz
Sat May 29 02:16:02 CEST 2010


Ron Burns wrote:
> Hi all-
> 
> Is there an R function that returns the directory in which a package has 
> been installed?
> 
> Thanks
> 	Ron
> 
> 
?system.file

For example:

 > system.file(package="DistributionUtils")
[1] "C:/Users/dsco036/R/win-library/2.10/DistributionUtils"


David Scott
-- 
_________________________________________________________________
David Scott	Department of Statistics
		The University of Auckland, PB 92019
		Auckland 1142,    NEW ZEALAND
Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055
Email:	d.scott at auckland.ac.nz,  Fax: +64 9 373 7018

Director of Consulting, Department of Statistics



More information about the R-help mailing list