It seems that R 2.14 can byte-compile packages using a switch on R CMD INSTALL
but I couldn't find such an option in the install.packages documentation. Am I missing something?
As it says in ?install.packages
, you can use the INSTALL_opts=
argument to pass additional options to R CMD INSTALL
for a source package install. If you're installing a binary package from CRAN, it's likely already byte-compiled.
For example, to install from source and byte-compile manually (make sure you have the necessary tools):
install.packages("xts", type="source", INSTALL_opts="--byte-compile")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With