On 24/06/2021 5:53 p.m., Gábor Csárdi wrote:
Actually, I see somewhat different things in RStudio, for me there is
no pre-clean (with the default options AFAIR).

I'm not using the default options, as I said.

Duncan Murdoch


I can reproduce the rebuilding for rgl, but not for other packages I
tried. I vaguely remember a similar issue for another package, which
also used autoconf. So this indeed might be a bug in devtools/pkgload
or some unfortunate interplay between load_all() and autoconf's
configure.

In general, it seems that both RStudio and devtools just use the
package directory, and the object files are in src/. For all the
packages I tried, I did not see an unneeded full rebuild.

G.

On Thu, Jun 24, 2021 at 11:32 PM Duncan Murdoch
<murdoch.dun...@gmail.com> wrote:

On 24/06/2021 5:22 p.m., Gábor Csárdi wrote:
On Thu, Jun 24, 2021 at 10:31 PM Duncan Murdoch
<murdoch.dun...@gmail.com> wrote:
[...]
I'm working in RStudio on a Mac, in case that makes any difference.

Yes, RStudio probably does its own thing in "Install and restart". The
pre-clean of course removes the object files from the package src/
directory, so the next load_all() will need to recompile everything.

But why did step 5 recompile everything?  Here's what you left out of
the quote:

4.  Click "Install and Restart" button again

This is the fast build I was talking about:  no recompiling.

5.  devtools::load_all(".")

This does the full compile again, so it's slow.

Duncan Murdoch

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to