When using the make tool directly, one can use the -j option to build in parallel.
How can I use parallel build when installing an R package using install.packages()? make is invoked by R, not by me, so I can't pass the -j option to it. Setting export MAKE_FLAGS=-j4 before starting R did not work. I am looking to set up parallel build permanently for my R installation.