title: Config file in R package
body: <p>I would like to include a "config" file in an R package that I am building. However, what I would like to achieve is for the file to be loaded on memory every time the package is loaded and for it to be available in the package installation folder available for the users to change upon demand.</p>
  
  <p>For example, if a user of this package wants to modify the config file, he could simply find it in his "library/package" directory, make the required changes, reload the package and see the effects of his change. </p>
  
  <p>I have implemented the following solution. Adding the config file in inst/extdata and reading it using read.csv and assigning it to a global variable as part of the .onLoad function. In this case the users of the package would be able to apply changes without rebuilding the package.</p>
  
  <p>This is what I have in my zzz.R file:</p>
  
  <pre><code>.onLoad &lt;- function(libname, pkgname) {
  
    config_resources &lt;&lt;-
      read.csv(file = system.file("extdata", "config.csv", package = "TSTpkg"),
               stringsAsFactors = FALSE)
  }
  </code></pre>
  
  <p>Is this the right approach to achieve what I want to do? If not, what would the right approach be? Finally, is there any way to make this data available internally while still maintaining the ability for the user to change this on demand? Something similar to the sysdata.rda but without the need to rebuild the package for the changes to take effect.</p>