Closed billdenney closed 2 years ago
You can set INSTALL_opts = "--build"
and then you'll get a binary package that you can reuse:
❯ remotes::install_github("nlmixr2/lotri", INSTALL_opts = "--build")
Downloading GitHub repo nlmixr2/lotri@HEAD
...
* creating tarball
packaged installation of ‘lotri’ as ‘lotri_0.4.0.tgz’
* DONE (lotri)
I'm working on the rxode2 package, and it takes notable time to install from source (about 5 minutes to compile). When installing it from GitHub, it appears that it is compiled twice: once to build the documentation, and once to build the package. (Or, it may end up being 3 or 4 times in Windows to cover both i386 and x64 compilation.)
Is it possible to save the results of the first compilation step or somehow otherwise prevent the need for multiple recompilation of the same code?
To see the time it takes: