From msuzen at mango-solutions.com  Wed Aug 17 18:04:49 2011
From: msuzen at mango-solutions.com (Mehmet Suzen)
Date: Wed, 17 Aug 2011 17:04:49 +0100
Subject: [Rd] Referencing 'inst' directory in installed package
In-Reply-To: <A6A6DD95-ED16-4651-8902-76FB34C437C3@gmail.com>
References: <A6A6DD95-ED16-4651-8902-76FB34C437C3@gmail.com>
Message-ID: <3CBFCFB1FEFFA841BA83ADF2F2A9C6FA0183597C@mango-data1.Mango.local>

You can use
system.file(package="your_package_name")
which will return you library directory.


-----Original Message-----
From: r-devel-bounces at r-project.org
[mailto:r-devel-bounces at r-project.org] On Behalf Of Jonathan Malmaud
Sent: 17 August 2011 04:18
To: r-devel at r-project.org
Subject: [Rd] Referencing 'inst' directory in installed package

Hi,
My R package has files in the 'inst' directory that it needs to
reference. How can the R scripts in my package find out the full path to
the 'inst' directory after the package is installed, given that
different users may have installed the package to different libraries? 

Thanks,
Jon Malmaud
______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
LEGAL NOTICE
This message is intended for the use o...{{dropped:10}}



[Rd] Referencing 'inst' directory in installed package
Mehmet Suzen