{"id":2133,"date":"2020-03-04T14:57:41","date_gmt":"2020-03-04T05:57:41","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=2133"},"modified":"2021-07-18T11:01:09","modified_gmt":"2021-07-18T02:01:09","slug":"r%e3%81%af%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e3%81%af%e3%81%aa%e3%81%8f%e7%b5%b6%e5%af%be%e3%81%abgui%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=2133","title":{"rendered":"R\u306f\u30b3\u30de\u30f3\u30c9\u3067\u306f\u306a\u304f\u7d76\u5bfe\u306bGUI\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u3046\u3079\u304d\u7406\u7531"},"content":{"rendered":"<p>\u7d71\u8a08\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e&#8221;R&#8221;\u306f\u7d71\u8a08\u5206\u6790\u3084\u30c7\u30fc\u30bf\u306e\u30d3\u30b8\u30e5\u30a2\u30e9\u30a4\u30ba\u3001\u53ef\u8996\u5316\u306a\u3069\u3001\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u306b\u6d3b\u7528\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002R\u3067\u306f\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3088\u308a\u3082GUI\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u7406\u7531\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u4ee5\u4e0a\u3084\u308b\u3068\u9b31\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3061\u3087\u3063\u3068\u3084\u3081\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u4ee5\u4e0bstackoverflow\u306b\u6295\u7a3f\u3057\u305f\u50d5\u306e\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/57173444\/run-r-script-from-bash-with-plotting-graph\">Run R script from Bash with plotting graph &#8211; Stack Overflow<\/a><\/p>\n<p>R\u3067\u30b0\u30e9\u30d5\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3092\u8003\u616e\u3057\u305fBash\u3067\u306e\u5b9f\u884c\u304c\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4e0a\u8a18\u306e\u901a\u308a\u3001\u4e00\u901a\u308a\u306e\u601d\u3044\u3064\u3044\u305f\u65b9\u6cd5\u306f\u3084\u3063\u3066\u307f\u3066\u5168\u90e8\u3060\u3081\u3067\u3057\u305f\u3068\u3002<\/p>\n<p>\u305d\u3057\u3066\u6709\u76ca\u305d\u3046\u306a\u56de\u7b54\u3092\u4e0a\u8a18\u306b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u3066\u3001\u305d\u3061\u3089\u306e\u53c2\u8003\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u307e\u3041\u3060\u3081\u3067\u3057\u305f\u3068\u3002<\/p>\n<p><a href=\"https:\/\/thesquareplanet.com\/blog\/interactive-r-scripts\/\">Interactive R scripts :: Jon Gjengset<\/a><\/p>\n<p>\u304b\u3093\u305f\u3093\u306b\u4e0a\u8a18\u3067\u3084\u3063\u305f\u3053\u3068\u3068\u3001\u3069\u3053\u3067\u3064\u307e\u305a\u3044\u305f\u306e\u304b\u3068\u3044\u3046\u3053\u3068\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u8a18\u4e8b\u306b\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u3092\u8aac\u660e\u7121\u3057\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><code>\/usr\/local\/bin\/Rint<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u4ee5\u4e0b\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<pre><code>#!\/bin\/sh\nf=$1; shift; env \"R_PROFILE_USER=$f\" \"ARGS=$@\" R --no-save -q\n<\/code><\/pre>\n<p>\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u307e\u3059<\/p>\n<pre><code>sudo chmod 755 \/usr\/local\/bin\/Rint\n<\/code><\/pre>\n<p>\u30b0\u30e9\u30d5\u3092\u51fa\u529b\u3059\u308bR\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u305f\u30d5\u30a1\u30a4\u30eb e.g. rint-dev.R \u3092\u4f5c\u308a\u307e\u3059\u3002\u5148\u982d\u306b<code>#!\/usr\/local\/bin\/Rint<\/code>\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>#!\/usr\/local\/bin\/Rint\n\n# Define the cars vector with 5 values\ncars &lt;- c(1, 3, 6, 4, 9)\n\n# Graph the cars vector with all defaults\nplot(cars)\n<\/code><\/pre>\n<p><code>.\/rint-dev.R<\/code>\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u304c\u4e0a\u8a18\u8a18\u4e8b\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3002<\/p>\n<p>\u3067\u3053\u308c\u3067\u30b0\u30e9\u30d5\u304c\u51fa\u529b\u3055\u308c\u308c\u3070\u4e07\u4e8b\u89e3\u6c7a\u3001\u3068\u601d\u3044\u304d\u3084\u3001\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u8a18\u4e8b\u306e\u4e00\u756a\u4e0b\u306b\u3082\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u901a\u5e38\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u624b\u52d5\u3067\u8aad\u307f\u8fbc\u3093\u3067\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3001\u3068\u8a00\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3058\u3083\u3042\u901a\u5e38\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30b3\u30e2\u30f3\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4e00\u901a\u308a\u8aad\u307f\u8fbc\u3093\u3067\u3084\u308c\u3070\u3044\u3044\u3093\u3060\u306a\u3001\u3068\u3002<\/p>\n<p><code>R<\/code>\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30b7\u30a7\u30eb\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u4ee5\u4e0b\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d1\u30b9\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3002<\/p>\n<pre><code>.libPaths()\n<\/code><\/pre>\n<p>\u50d5\u306e\u5834\u5408\u306f4\u3064\u3042\u308a\u307e\u3057\u305f\u3002\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u3084\u308a\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3044\u3058\u3063\u3066\u2026<\/p>\n<pre><code>ls \"\/home\/yuis\/R\/x86_64-pc-linux-gnu-library\/3.4\" | awk 9\nls \"\/usr\/local\/lib\/R\/site-library\" | awk 9\nls \"\/usr\/lib\/R\/site-library\" | awk 9\nls \"\/usr\/lib\/R\/library\" | awk 9\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6574\u5f62\u3057\u307e\u3059\u3002<\/p>\n<pre><code>library(codetools)\nlibrary(spatial)\nlibrary(nnet)\nlibrary(class)\nlibrary(survival)\nlibrary(rpart)\nlibrary(mgcv)\nlibrary(Matrix)\n...\nlibrary(grid)\nlibrary(tcltk)\nlibrary(stats)\nlibrary(utils)\n<\/code><\/pre>\n<p>\u3058\u3083\u3042\u6539\u3081\u3066\u3053\u308c\u3092\u8ffd\u8a18\u3057\u3066\u5b9f\u884c\u3057\u3066\u3084\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>#!\/usr\/local\/bin\/Rint\n\nlibrary(codetools)\nlibrary(spatial)\nlibrary(nnet)\nlibrary(class)\nlibrary(survival)\nlibrary(rpart)\nlibrary(mgcv)\nlibrary(Matrix)\n...\nlibrary(grid)\nlibrary(tcltk)\nlibrary(stats)\nlibrary(utils)\n\n# Define the cars vector with 5 values\ncars &lt;- c(1, 3, 6, 4, 9)\n\n# Graph the cars vector with all defaults\nplot(cars)\n<\/code><\/pre>\n<p>\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3093\u3060\u308d\u3046\u306a\u3001\u3068\u601d\u3044\u3064\u3064\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u3084\u306f\u308a\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3041\u2026\u3002\u3069\u3046\u3057\u3066\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3093\u3067\u3057\u3087\u3046\u304b\u306d\u3047\u2026(\u5927\u7269)<\/p>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_3057ba6f-9509-42a2-8708-54557121bc40.gif\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_3057ba6f-9509-42a2-8708-54557121bc40.gif\"><\/p>\n<p>8\u6642\u9593\u304f\u3089\u3044\u3053\u3093\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u305f\u305f\u3081\u304b\u3001\u304b\u306a\u308a\u60c5\u7dd2\u4e0d\u5b89\u5b9a\u3067\u3059\u306d\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/data\/MjQuC3Aeoxgi4YZvwYxCRCXfuwXbGI1H.png\" alt=\"https:\/\/yuis.xsrv.jp\/data\/MjQuC3Aeoxgi4YZvwYxCRCXfuwXbGI1H.png\"><\/p>\n<p>R\u8a00\u8a9e\u3092\u3084\u308b\u306a\u3089\u3001RStudio\u306eGUI\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u304a\u3046\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d71\u8a08\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e&#8221;R&#8221;\u306f\u7d71\u8a08\u5206\u6790\u3084\u30c7\u30fc\u30bf\u306e\u30d3\u30b8\u30e5\u30a2\u30e9\u30a4\u30ba\u3001\u53ef\u8996\u5316\u306a\u3069\u3001\u30c7\u30fc\u30bf\u30b5\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[89],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-yp","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2133"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2133"}],"version-history":[{"count":4,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2133\/revisions"}],"predecessor-version":[{"id":2420,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2133\/revisions\/2420"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}