[R] rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created
jdnewmil at dcn.davis.ca.us
Thu Apr 20 00:32:08 CEST 2017
I think we are (I certainly am) going to need a more concrete example. As in, point us at a specific package and filename in this package that illustrates your concern. Such precision would also be expected on R-devel, so the lack of response may have been self-inflicted.
Are you aware of the system.file and file.path functions? File names that YOU enter into your package code should be referenced using these functions. I have been assuming so far that you were referring to filenames picked up by R as it builds the package, which appear to be handled just fine however they are stored though I don't know the details.
Sent from my phone. Please excuse my brevity.
On April 19, 2017 2:40:05 PM PDT, Philip Rinn <rinni at inventati.org> wrote:
>On 12.04.2017 at 08:09, Jeff Newmiller wrote:
>> Someone might respond here anyway, but I think this is more of an
>I tired R-devel before with no response :(.
>> Anyway, as long as the package file after installation has
>> names for where it is installed, what does it matter what is in the
>> before installation?
>That's actually the point. In the installed .rd[bs] files the absolute
>are still present but often the referenced files don't even exist on
>computer the packaged is installed. My approach therefore is to replace
>absolute paths by relative paths. But to do so I need to understand
>exactly those absolute paths are injected in the files - that's why I
>help in my fist mail - sorry for not being clear enough.
> At least on Linux for packages installed via the distribution
>And I think this also holds for prebuild windows/mac builds from cran.
> Relative to teh root directory of the package source
More information about the R-help