Updated required R packages. Changes in first.R