Re: [R-pkg-devel] referring to a package data object by two names

2017-10-08 Thread Gregory Jefferis
Dear Michael, Many thanks for writing. > Do any of the suggestions in section 1.5.3 of Writing R Extensions "Load > hooks" work? I thought I had tried all the various permutations in .onLoad but at your prompting I tried some more and this seems to work: .onLoad <- function (libname, pkgname)

Re: [R-pkg-devel] referring to a package data object by two names

2017-10-08 Thread Michael Dewey
Dear Greg Do any of the suggestions in section 1.5.3 of Writing R Extensions "Load hooks" work? Michael On 08/10/2017 08:40, Gregory Jefferis wrote: Dear R colleagues, I have a set of versioned data objects in a package. Let's call them landmarks.2016 landmarks.2017 I need to have access

[R-pkg-devel] referring to a package data object by two names

2017-10-08 Thread Gregory Jefferis
Dear R colleagues, I have a set of versioned data objects in a package. Let's call them landmarks.2016 landmarks.2017 I need to have access to both of these objects for different calculations both internal to the package and for end users. The objects are saved as rda files in the package's d