Skip to content
Prev 8761 / 12125 Next

[R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

Hi,
thank you for the reply.

Do you need this to be a file? Could it be a pre-parsed R object
instead?


I need to provide an external data/file in the R package. This has come as
a request from F1000 journal editors.

One way to solve this could be to write a script that imports the file
from inst/extdata using the facilities provided by your package and put
it in a file under data/, then document the resulting object.


What do you call this step? How do I do this?
I thought to loading the file as lazyload, .onload package something?

Best,
--
Sanjeev M
On Tue, Dec 20, 2022 at 1:55 AM Ivan Krylov <krylov.r00t at gmail.com> wrote: