{"id":1210,"date":"2015-02-11T13:36:22","date_gmt":"2015-02-11T18:36:22","guid":{"rendered":"http:\/\/wehuberconsultingllc.com\/wordpress\/?p=1210"},"modified":"2016-11-02T10:49:46","modified_gmt":"2016-11-02T14:49:46","slug":"quickly-install-packages-new-r-installation","status":"publish","type":"post","link":"https:\/\/wehuberconsultingllc.com\/wordpress\/2015\/02\/11\/quickly-install-packages-new-r-installation\/","title":{"rendered":"How To Quickly Install Packages With A New R Installation"},"content":{"rendered":"<p>Okay, Joel, here it is. I got these instruction off of the Internet but I do not remember who was the original source.<\/p>\n<ol>\n<li>I keep this file in a RStudio project I call installed_packages.<\/li>\n<li>Before I upgrade I run the first two line to update the package_list.<\/li>\n<li>After I upgrade I go back to project, un-comment the install.packages line and run it.<\/li>\n<li>I also have a line in there if you want a csv copy of the installed packages.<\/li>\n<\/ol>\n<pre class=\"brush: R\">\r\n#Get currently installed packages\r\n\r\n#work\r\npackage_df < - as.data.frame(installed.packages())\r\npackage_list <- as.character(package_df$Package)\r\n#write.csv(package_df, file = \"package_df.csv\")\r\n#Re-install Install packages\r\n#install.packages(package_list)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Okay, Joel, here it is. I got these instruction off of the Internet but I do not remember who was the original source. I keep this file in a RStudio project I call installed_packages. Before I upgrade I run the first two line to update the package_list. After I upgrade I go back to project, &hellip; <a href=\"https:\/\/wehuberconsultingllc.com\/wordpress\/2015\/02\/11\/quickly-install-packages-new-r-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Quickly Install Packages With A New R Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[104],"tags":[146],"class_list":["post-1210","post","type-post","status-publish","format-standard","hentry","category-r","tag-r"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4iN3d-jw","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/1210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1210"}],"version-history":[{"count":3,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/1210\/revisions"}],"predecessor-version":[{"id":1213,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/1210\/revisions\/1213"}],"wp:attachment":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}