title: How to load compiled library in an R package
body: <p>I am writing an R package where I need to include a compiled library file qserver.dll and dym.load it when the package is loaded in R throught library(myPackage). This qserver.dll is provided by a third party vendor so I don't have the source code.</p>
  
  <p>I did some research on the internet but information is rare. What I have found so far is that I should put this file in the to inst/ subdirectory of my package folder. However, how I can determine the path to this file when writing the package so I can write something like</p>
  
  <pre><code>dyn.load("path/to/file/qserver.dll")
  </code></pre>
  
  <p>when writing the package. Thanks very much.</p>