Code for installing necessary R packages