Re: [Rd] Referencing 'inst' directory in installed package

From: Mehmet Suzen <>
Date: Wed, 17 Aug 2011 17:04:49 +0100

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

-----Original Message-----
[] On Behalf Of Jonathan Malmaud Sent: 17 August 2011 04:18
Subject: [Rd] Referencing 'inst' directory in installed package

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?

Jon Malmaud mailing list LEGAL NOTICE
This message is intended for the use o...{{dropped:10}} mailing list Received on Wed 17 Aug 2011 - 16:14:58 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 17 Aug 2011 - 17:40:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive