Take it or leave it.

When I run the Check on my computer, nothing errors out on the parameterCdFile (using ::). Also, for build_data, I added another way to do it, but seeing what it does, I wouldn't do either method in my humble opinion. Just add that list to a data object, or sysdata.rda, or whatever we decide is the best.
OK, I see why you are doing it now. Yeah, obviously the if file.exists
needs it too, I just had no idea why you would do such a thing. I call
stuff from inst/extdata for examples in the check all the time using:
path <- system.file("extdata",  package="dataRetrieval")

I didn't test the code I passed on to you, but you should be able to use
files in that folder. Does this work?

filePath <- system.file("inst", package="mda.streams")

source(file.path(filePath, "int_data.R"))



On Wed, Dec 10, 2014 at 6:56 PM, Jordan S Read <notifications@github.com>
wrote:

> In R/build_data.R
> <https://github.com/USGS-R/mda.streams/pull/16#discussion-diff-21651473>:
>
> > @@ -1,4 +1,5 @@
> >  # runs on package build. Need to fix for windows...
> >  if (file.exists('~/Documents/R/mda.streams/inst/init_data.R')){
> > -  source('~/Documents/R/mda.streams/inst/init_data.R')
> > +  filePath <- system.file("inst", "int_data.R", package="mda.streams")
>
> the same file should be checked for file.exists that is sourced. On my
> comp, for example, R '~/Documents/R/mda.streams/inst/init_data.R' exists,
> but R system.file("inst", "int_data.R", package="mda.streams") does not.
> Also, files in inst are blown away on build.
>
> What I did here is kind of a stop gap solution. The file exists for
> package developers (and on version control), but not for users installing
> the package. I want to know *how* I should do this in the future, so this
> is a temporary fix. Someday I'll figure it out.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/USGS-R/mda.streams/pull/16/files#r21651473>.
>



-- 
Laura DeCicco
Center for Integrated Data Analytics
U.S. Geological Survey
608-821-3857
http://cida.usgs.gov/people/ldecicco.html