[R-pkg-devel] speeding up package code/build/test cycle
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Thu Jun 24 23:32:56 CEST 2021
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.duncan using 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
More information about the R-package-devel
mailing list