After I upgrade my R version, how can I easily reinstall all the packages that were installed in the old version? [duplicate] After I upgrade my R version, how can I easily reinstall all the packages that were installed in the old version? [duplicate] r r