Re: [R-pkg-devel] Simple way to run code during package install

2024-11-20 Thread Duncan Murdoch
I think I have a solution. Roxygen2 allows this option to be specified in the DESCRIPTION file: Roxygen: list(markdown = TRUE, load = "installed") With the `load = "installed"` setting, it doesn't try to run the .R files. Duncan Murdoch On 2024-11-19 9:01 a.m., Duncan Murdoch wrote: I hav

[R-pkg-devel] Simple way to run code during package install

2024-11-19 Thread Duncan Murdoch
I have some code in rgl and rgl2gltf that should be run during the package install process, and not later. (It's a call to rgl::makeDependency, which does some stuff with Javascript files and writes into the package installation directory, saving the paths of the files it wrote.) Currently r