Message-ID: <CAGAA5bekYRgM_bV_Rpv6Dgzr2PwTcWUJePjNUbuiCe+UcwgbyQ@mail.gmail.com>
Date: 2017-09-15T12:30:53Z
From: Martin Møller Skarbiniks Pedersen
Subject: How to add make option to package compilation?
In-Reply-To: <32b4d251-25e6-fb36-b62e-d87dfb07fc59@gmail.com>
On 15 September 2017 at 14:13, Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> On 15/09/2017 8:11 AM, Martin M?ller Skarbiniks Pedersen wrote:
>
>> Hi,
>>
>> I am installing a lot of packages to a new R installation and it takes
>> a
>> long time.
>> However the machine got 4 cpus and most of the packages are written in
>> C/C++.
>>
>> So is it possible to add a -j4 flag to the make command when I use the
>> install.packages() function?
>> That will probably speed up the package installation process 390%.
>>
>
> See the Ncpus argument in ?install.packages.
Thanks.
However it looks like Ncpus=4 tries to compile four R packages at the same
time using one cpu for each packages.