You can use system.file(package="your_package_name") which will return you library directory.
-----Original Message----- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Jonathan Malmaud Sent: 17 August 2011 04:18 To: r-devel@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@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}} ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel