capture output for install.packages