{"id":4763,"date":"2015-02-21T22:57:27","date_gmt":"2015-02-21T21:57:27","guid":{"rendered":"http:\/\/emilkirkegaard.dk\/en\/?p=4763"},"modified":"2015-02-21T22:57:27","modified_gmt":"2015-02-21T21:57:27","slug":"installing-vim-in-r-on-mint-17","status":"publish","type":"post","link":"https:\/\/emilkirkegaard.dk\/en\/2015\/02\/installing-vim-in-r-on-mint-17\/","title":{"rendered":"Installing VIM in R on Mint 17"},"content":{"rendered":"<p>For data imputation, for simplicity I like to use single imputation instead of multiple imputation. This can easily be done with the VIM package using the irmi command. So, I tried to install VIM in R on Mint 17. However:<\/p>\n<blockquote><p>* installing *source* package \u2018robustbase\u2019 &#8230;<br \/>\n** package \u2018robustbase\u2019 successfully unpacked and MD5 sums checked<br \/>\n** libs<br \/>\ngcc -std=gnu99 -I\/usr\/share\/R\/include -DNDEBUG\u00a0\u00a0\u00a0\u00a0\u00a0 -fpic\u00a0 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g\u00a0 -c R-rng4ftn.c -o R-rng4ftn.o<br \/>\ngfortran\u00a0\u00a0 -fpic\u00a0 -g -O2 -fstack-protector-strong\u00a0 -c eigen.f -o eigen.o<br \/>\n\/bin\/bash: gfortran: command not found<br \/>\nmake: *** [eigen.o] Error 127<br \/>\nERROR: compilation failed for package \u2018robustbase\u2019<br \/>\n* removing \u2018\/home\/lenovo\/R\/x86_64-pc-linux-gnu-library\/3.1\/robustbase\u2019<br \/>\nWarning in install.packages :<br \/>\ninstallation of package \u2018robustbase\u2019 had non-zero exit status<br \/>\n* installing *source* package \u2018vcd\u2019 &#8230;<br \/>\n** package \u2018vcd\u2019 successfully unpacked and MD5 sums checked<br \/>\n** R<br \/>\n** data<br \/>\n*** moving datasets to lazyload DB<br \/>\n** demo<br \/>\n** inst<br \/>\n** preparing package for lazy loading<br \/>\n** help<br \/>\n*** installing help indices<br \/>\n** building package indices<br \/>\n** installing vignettes<br \/>\n** testing if installed package can be loaded<br \/>\n* DONE (vcd)<br \/>\nERROR: dependency \u2018robustbase\u2019 is not available for package \u2018VIM\u2019<br \/>\n* removing \u2018\/home\/lenovo\/R\/x86_64-pc-linux-gnu-library\/3.1\/VIM\u2019<br \/>\nWarning in install.packages :<br \/>\ninstallation of package \u2018VIM\u2019 had non-zero exit status<\/p><\/blockquote>\n<p>Now, for many packages, one has to use Synaptic Package Manager or equivalent (Software Manager, apt-get etc.) outside R to install R packages. I installed robustbase thru Synaptic and then tried to install in R again. However:<\/p>\n<blockquote><p>* installing *source* package \u2018robustbase\u2019 &#8230;<br \/>\n** package \u2018robustbase\u2019 successfully unpacked and MD5 sums checked<br \/>\n** libs<br \/>\ngcc -std=gnu99 -I\/usr\/share\/R\/include -DNDEBUG\u00a0\u00a0\u00a0\u00a0\u00a0 -fpic\u00a0 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g\u00a0 -c R-rng4ftn.c -o R-rng4ftn.o<br \/>\ngfortran\u00a0\u00a0 -fpic\u00a0 -g -O2 -fstack-protector-strong\u00a0 -c eigen.f -o eigen.o<br \/>\n\/bin\/bash: gfortran: command not found<br \/>\nmake: *** [eigen.o] Error 127<br \/>\nERROR: compilation failed for package \u2018robustbase\u2019<br \/>\n* removing \u2018\/home\/lenovo\/R\/x86_64-pc-linux-gnu-library\/3.1\/robustbase\u2019<br \/>\nWarning in install.packages :<br \/>\ninstallation of package \u2018robustbase\u2019 had non-zero exit status<\/p><\/blockquote>\n<p>There is a gforstran package in Synaptic, so I installed that. Then back to R and try to install robustbase again. But then:<\/p>\n<blockquote><p>\/usr\/bin\/ld: cannot find -llapack<br \/>\n\/usr\/bin\/ld: cannot find -lblas<br \/>\ncollect2: error: ld returned 1 exit status<br \/>\nmake: *** [robustbase.so] Error 1<br \/>\nERROR: compilation failed for package \u2018robustbase\u2019<br \/>\n* removing \u2018\/home\/lenovo\/R\/x86_64-pc-linux-gnu-library\/3.1\/robustbase\u2019<\/p><\/blockquote>\n<p>Anyway, sometimes packages in R work despite some missing sub-sub dependencies, and it did in this case. For me. At this time. Using Linux is a new experience every time&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For data imputation, for simplicity I like to use single imputation instead of multiple imputation. This can easily be done with the VIM package using the irmi command. So, I tried to install VIM in R on Mint 17. However: * installing *source* package \u2018robustbase\u2019 &#8230; ** package \u2018robustbase\u2019 successfully unpacked and MD5 sums checked [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2089],"tags":[2093,1979],"class_list":["post-4763","post","type-post","status-publish","format-standard","hentry","category-programming","tag-mint","tag-r","entry"],"_links":{"self":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/4763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/comments?post=4763"}],"version-history":[{"count":1,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/4763\/revisions"}],"predecessor-version":[{"id":4764,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/4763\/revisions\/4764"}],"wp:attachment":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/media?parent=4763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/categories?post=4763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/tags?post=4763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}