In the documentation, R suggests that raw data files (not Rdata nor Rda) should be placed in inst/extdata/
inst/extdata/
From the first paragraph in: http://cran.r-pr
More useful than using file.path would be to use system.file. Once your package is installed, you can grab your file like so:
file.path
system.file
fpath <- system.file("extdata", "my_raw_data.csv", package="my_package")
fpath will now have the absolute path on your HD to the file.
fpath