{"id":2401,"date":"2024-08-29T13:01:46","date_gmt":"2024-08-29T04:01:46","guid":{"rendered":"https:\/\/secondlife.lol\/?p=2401"},"modified":"2024-08-29T13:01:48","modified_gmt":"2024-08-29T04:01:48","slug":"offline-r-packages-installation","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/ja\/offline-r-packages-installation\/","title":{"rendered":"\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306eR\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1a\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u307e\u3067"},"content":{"rendered":"<p class=\"wp-block-paragraph\">R\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u6642\u3005\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u3067\u304d\u306a\u3044\u74b0\u5883\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u6642\u3001\u5fc5\u8981\u306a\u5168\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u500b\u5225\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u307e\u3067\u542b\u3081\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30dd\u30b9\u30c8\u3067\u306f\u300cR\u30aa\u30d5\u30e9\u30a4\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u3092\u30c6\u30fc\u30de\u306b\u3001\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u5168\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3068\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u3082\u52b9\u7387\u7684\u306bR\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u306a\u305c\u30aa\u30d5\u30e9\u30a4\u30f3\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u601d\u3063\u305f\u3088\u308a\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u3067\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u906e\u65ad\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u3067\u4f5c\u696d\u3057\u305f\u308a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u4e0d\u5b89\u5b9a\u306a\u74b0\u5883\u3067\u4f5c\u696d\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e8b\u524d\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u304b\u3057\u3001R\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u542b\u3081\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30aa\u30d5\u30e9\u30a4\u30f3\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u6e96\u5099\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u78ba\u8a8d\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u7279\u5b9a\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4f9d\u5b58\u3059\u308b\u5168\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u7dd2\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002R\u3067\u306f <code>tools::package_dependencies()<\/code> \u95a2\u6570\u3092\u4f7f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u60c5\u5831\u3092\u3082\u3068\u306b\u3001\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e8b\u524d\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f8b\u3067\u3059\uff1aggplot2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u30c1\u30a7\u30c3\u30af<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u78ba\u8a8d\ndependencies &lt;- tools::package_dependencies(&quot;ggplot2&quot;, recursive = TRUE)\nprint(dependencies)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f9d\u5b58\u95a2\u4fc2\u306e\u78ba\u8a8d\uff1a<\/strong> <code>tools::package_dependencies()<\/code> \u95a2\u6570\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8(\u3053\u3053\u3067\u306f <code>\"ggplot2\"<\/code>)\u304c\u4f9d\u5b58\u3059\u308b\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u518d\u5e30\u7684\u63a2\u7d22\uff1a<\/strong> <code>recursive = TRUE<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068\u3001ggplot2\u3060\u3051\u3067\u306a\u304f\u3001\u305d\u306e\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u307e\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f9d\u5b58\u95a2\u4fc2\u30c1\u30a7\u30fc\u30f3\u3092\u5168\u3066\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4f9d\u5b58\u95a2\u4fc2\u30ea\u30b9\u30c8\u51fa\u529b\uff1a<\/strong> <code>print(dependencies)<\/code>\u306f\u4f9d\u5b58\u95a2\u4fc2\u306e\u30ea\u30b9\u30c8\u3092\u51fa\u529b\u3057\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ea\u30b9\u30c8\u3092\u3082\u3068\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092CRAN\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3057\u3066\u5f97\u3089\u308c\u305f\u4f9d\u5b58\u95a2\u4fc2\u30ea\u30b9\u30c8\u3092\u3082\u3068\u306b\u3001CRAN\u307e\u305f\u306f\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u8a72\u5f53\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u500b\u5225\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u65b9\u6cd5<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u3092CRAN\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u307e\u305f\u306f\u30df\u30e9\u30fc\u30b5\u30a4\u30c8\u304b\u3089\u624b\u52d5\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5404\u30d1\u30c3\u30b1\u30fc\u30b8\u306e <code>.tar.gz<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001\u3059\u3079\u3066\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5fc5\u8981\u306a\u5168\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001\u305d\u308c\u3089\u3092\u4e00\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001c\uff1a<code>\/project\/package\/<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u30aa\u30d5\u30e9\u30a4\u30f3\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u306f\u3001\u65e2\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u304c\u5fc5\u8981\u3067\u3059\u3002R\u3067\u306f <code>install.packages()<\/code> \u95a2\u6570\u3092\u4f7f\u3063\u3066\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u5168\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u306e\u53d6\u5f97\npackage_files &lt;- list.files(&quot;\/project\/package\/&quot;, pattern = &quot;\\\\.tar\\\\.gz$&quot;, full.names = TRUE)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\uff1a<\/strong> <strong><code>list.files()<\/code> \u6a5f\u80fd<\/strong>\u306f\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\u3053\u3053\u3067\u306f <code>\/project\/package\/<\/code>)\u5185\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u89a7\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\uff1a<\/strong> <code>pattern = \"\\\\.tar\\\\.gz$\"<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306f <code>.tar.gz<\/code> \u62e1\u5f35\u5b50\u3067\u7d42\u308f\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u3092\u9078\u629e\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 \u3053\u308c\u306fR\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u822c\u7684\u306a\u5f62\u5f0f\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5168\u7d4c\u8def\u3092\u8fd4\u3057\u307e\u3059\uff1a<\/strong> <code>full.names = TRUE<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u306f\u306a\u304f\u30d5\u30eb\u30d1\u30b9\u3092\u8fd4\u3059\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5f8c\u3067 <code>install.packages()<\/code> \u95a2\u6570\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u6b63\u78ba\u306b\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\ninstall.packages(package_files, repos = NULL, type = \"source\")<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1a<\/strong> <code>install.packages()<\/code> \u95a2\u6570\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u95a2\u6570\u3067\u3059\u3002\u3053\u3053\u3067\u306f <code>package_files<\/code>\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6e21\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1a<\/strong> <code>repos = NULL<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001R\u304c\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u305b\u305a\u306b\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u5fc5\u9808\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1a<\/strong> <code>type = \"\u30bd\u30fc\u30b9\"<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002 <code>.tar.gz<\/code> \u30d5\u30a1\u30a4\u30eb\u306f\u30bd\u30fc\u30b9\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f9d\u5b58\u6027\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306e\u30d2\u30f3\u30c8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067R\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6642\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u554f\u984c\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u4e8b\u524d\u306b\u628a\u63e1\u3057\u3001\u5fc5\u8981\u306a\u5834\u5408\u3001\u8a72\u5f53\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u4e8b\u524d\u306b\u628a\u63e1\u3059\u308b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u78ba\u8a8d\ndependencies &lt;- tools::package_dependencies(&quot;ggplot2&quot;, recursive = TRUE)\nprint(dependencies)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f9d\u5b58\u95a2\u4fc2\u306e\u628a\u63e1\uff1a<\/strong> <code>tools::package_dependencies()<\/code> \u95a2\u6570\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u628a\u63e1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u60c5\u5831\u3092\u3082\u3068\u306b\u3001\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092CRAN\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u518d\u5e30\u7684\u63a2\u7d22\uff1a<\/strong> <code>recursive = TRUE<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u30c1\u30a7\u30fc\u30f3\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>install.packages(package_files, repos = NULL, type = \"source\", dependencies = TRUE)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1a<\/strong> <code>\u4f9d\u5b58\u95a2\u4fc2 = TRUE<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u5168\u3066\u306e\u4f9d\u5b58\u6027\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u542b\u3081\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u4e8b\u524d\u306b\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4e8b\u524d\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u6b63\u78ba\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d50\u8ad6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">R\u3067\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306f\u610f\u5916\u3068\u7c21\u5358\u3067\u3059\u304c\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u4e8b\u524d\u306b\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300cR\u30aa\u30d5\u30e9\u30a4\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u3068\u3044\u3046\u30c6\u30fc\u30de\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3068\u4f9d\u5b58\u6027\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002 \u3053\u306e\u3088\u3046\u306a\u65b9\u6cd5\u306b\u3088\u3063\u3066\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u3082R\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>R \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud558\ub2e4 \ubcf4\uba74, \ub54c\ub54c\ub85c \uc778\ud130\ub137 \uc5f0\uacb0\uc774 \ubd88\uac00\ud55c \ud658\uacbd\uc5d0\uc11c R&#8230;<\/p>","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[205,203,174,204],"class_list":["post-2401","post","type-post","status-publish","format-standard","hentry","category-r-coding","tag-r--","tag-r-","tag--r--"],"taxonomy_info":{"category":[{"value":6,"label":"\uc54c(R)"}],"post_tag":[{"value":205,"label":"R \uc758\uc874\uc131 \uad00\ub9ac"},{"value":203,"label":"R \ud328\ud0a4\uc9c0 \uc124\uce58"},{"value":174,"label":"R \ud504\ub85c\uadf8\ub798\ubc0d"},{"value":204,"label":"\uc624\ud504\ub77c\uc778 R \ud328\ud0a4\uc9c0 \uad00\ub9ac"}]},"featured_image_src_large":false,"author_info":{"display_name":"TERE","author_link":"https:\/\/secondlife.lol\/ja\/author\/tere\/"},"comment_info":0,"category_info":[{"term_id":6,"name":"\uc54c(R)","slug":"r-coding","term_group":0,"term_taxonomy_id":6,"taxonomy":"category","description":"","parent":20,"count":61,"filter":"raw","cat_ID":6,"category_count":61,"category_description":"","cat_name":"\uc54c(R)","category_nicename":"r-coding","category_parent":20}],"tag_info":[{"term_id":205,"name":"R \uc758\uc874\uc131 \uad00\ub9ac","slug":"r-%ec%9d%98%ec%a1%b4%ec%84%b1-%ea%b4%80%eb%a6%ac","term_group":0,"term_taxonomy_id":205,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":203,"name":"R \ud328\ud0a4\uc9c0 \uc124\uce58","slug":"r-%ed%8c%a8%ed%82%a4%ec%a7%80-%ec%84%a4%ec%b9%98","term_group":0,"term_taxonomy_id":203,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":174,"name":"R \ud504\ub85c\uadf8\ub798\ubc0d","slug":"r-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%98%eb%b0%8d","term_group":0,"term_taxonomy_id":174,"taxonomy":"post_tag","description":"","parent":0,"count":15,"filter":"raw"},{"term_id":204,"name":"\uc624\ud504\ub77c\uc778 R \ud328\ud0a4\uc9c0 \uad00\ub9ac","slug":"%ec%98%a4%ed%94%84%eb%9d%bc%ec%9d%b8-r-%ed%8c%a8%ed%82%a4%ec%a7%80-%ea%b4%80%eb%a6%ac","term_group":0,"term_taxonomy_id":204,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/2401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/comments?post=2401"}],"version-history":[{"count":2,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/2401\/revisions"}],"predecessor-version":[{"id":2403,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/2401\/revisions\/2403"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/media?parent=2401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/categories?post=2401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/tags?post=2401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}