Skip to content
Prev 3456 / 12125 Next

[R-pkg-devel] define an environment in .onLoad

You don't need .onLoad for this, just put the environment into the
package environment. E.g. simply add

pkg_data <- new.env(parent = emptyenv())

to your package code. Then you can refer to pkg_data from the
functions in the package.

Best,
Gabor
On Tue, Jan 29, 2019 at 9:40 PM Pascal Title <pascaltitle at gmail.com> wrote: