You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a package with a lot of C++ code. It takes several hours to install it (especially on Windows). So devtools::install(quick = TRUE) is nice, because it recompiles only the files which have changed.
But when I change the git branch and I come back to the previous one, devtools::install(quick = TRUE) recompiles everything. It would be nice if it could "remember" the state of the branch.
The text was updated successfully, but these errors were encountered:
Hmm... I feel like this doc is incomplete. When the C(++) files have not changed, the option quick=TRUE allows to not recompile these files ("Nothing to be done for all" is printed). That's why I use it.
I suspect there's some indirection / misattribution in what you're experiencing. For example, quick = TRUE implies build = FALSE, by default. Which means that the package doesn't get built prior to installation. The word "built" is confusing, because it's not about, e.g. compiling code, but rather about making a so-called package bundle. And a package bundle does not contain any compliation artefacts that are lying around. So if quick = FALSE, then build = TRUE, and install() will definitely compile your package from scratch, because it will first be bundled (leaving behind any pre-compiled code) then installed.
But devtools has no direct relationship with your compilation artefacts and is not in a position to take the lead on preserving them across git branch changes, for example.
Hello
I have a package with a lot of C++ code. It takes several hours to install it (especially on Windows). So
devtools::install(quick = TRUE)
is nice, because it recompiles only the files which have changed.But when I change the git branch and I come back to the previous one,
devtools::install(quick = TRUE)
recompiles everything. It would be nice if it could "remember" the state of the branch.The text was updated successfully, but these errors were encountered: