{"id":1507,"date":"2021-02-24T13:17:45","date_gmt":"2021-02-24T04:17:45","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1507"},"modified":"2021-03-23T12:35:02","modified_gmt":"2021-03-23T03:35:02","slug":"windows-%e3%81%ab-r-4-0-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1507\/","title":{"rendered":"Windows \u306b R 4.0 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h2>R 4.0 \u3092 choco \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre>choco install r.project rtools -y<\/pre>\n<p><code>rtools<\/code> \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3060\u3051\u3067\u306f\u3060\u3081\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>PATH<\/code>\u3092\u901a\u3059\u3002<\/p>\n<blockquote><p>The easiest way to do so is create a text file <code>.Renviron<\/code> in your Documents folder which contains the following line:<br \/>\n<code>PATH=\"${RTOOLS40_HOME}\\usr\\bin;${PATH}\"<\/code><\/p><\/blockquote>\n<ul>\n<li>\u53c2\u8003\uff1a<a href=\"https:\/\/cran.r-project.org\/bin\/windows\/Rtools\/\">Using Rtools40 on Windows<\/a><\/li>\n<\/ul>\n<h2>Jupyter Kernel \u304a\u3088\u3073\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u7ba1\u7406\u8005\u3067 R \u3092\u5b9f\u884c\u3057\uff0c<\/p>\n<p>\u9078\u629e\u30ea\u30b9\u30c8\u304b\u3089\u30df\u30e9\u30fc\u30b5\u30a4\u30c8\u3092\u9078\u3076\u30b3\u30de\u30f3\u30c9<br \/>\n<code>chooseCRANmirror(graphics=FALSE)<\/code><br \/>\n\u3067\u9078\u629e\u3057\uff0c<\/p>\n<pre># Jupyter Kernel \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ninstall.packages('IRkernel')\r\nIRkernel::installspec(user = FALSE)\r\n\r\n# \u6388\u696d\u7528\u306b\u4f9d\u983c\u306e\u3042\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ninstall.packages('GISTools')\r\ninstall.packages('gstat')\r\ninstall.packages('spdep')\r\ninstall.packages('spatstat')\r\ninstall.packages('Rcmdr')\r\n\r\n# \u78ba\u8a8d\u306f\r\nlibrary()\r\n\r\n2021.3.23 \u8ffd\u52a0\r\ninstall.packages(\"psych\")\r\ninstall.packages(\"RcmdrPlugin.EZR\", dependencies=TRUE)\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>R 4.0 \u3092 choco \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb choco in <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1507\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[19,4],"tags":[],"class_list":["post-1507","post","type-post","status-publish","format-standard","hentry","category-r","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1507"}],"version-history":[{"count":5,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1507\/revisions"}],"predecessor-version":[{"id":1601,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1507\/revisions\/1601"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}