{"id":58582,"date":"2024-06-16T23:14:37","date_gmt":"2024-06-16T15:14:37","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=58582"},"modified":"2024-06-16T23:14:37","modified_gmt":"2024-06-16T15:14:37","slug":"%e4%bd%bf%e7%94%a8renv%e7%ae%a1%e7%90%86%e9%a1%b9%e7%9b%ae%ef%bc%8c%e8%ae%a9r%e5%8c%85%e4%b8%8d%e5%86%8d%e5%86%b2%e7%aa%81%ef%bc%81","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=58582","title":{"rendered":"\u4f7f\u7528renv\u7ba1\u7406\u9879\u76ee\uff0c\u8ba9R\u5305\u4e0d\u518d\u51b2\u7a81\uff01"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u4f7f\u7528renv\u7ba1\u7406\u9879\u76ee\uff0c\u8ba9R\u5305\u4e0d\u518d\u51b2\u7a81\uff01\",\"time\":\"2023-08-15 19:00:12\",\"timeStamp\":\"1692097212\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247491480&#038;idx=2&#038;sn=f38025ed4ddb8203abd03355e51f9ff9&#038;chksm=cf7c8f5df80b064b3f1bb1cd3e92f71aaf2bfa59b9c4ffefc9dcf3464e1ad4348aab73ba69ea#rd\" target=\"_blank\" rel=\"noopener\">\u4f7f\u7528renv\u7ba1\u7406\u9879\u76ee\uff0c\u8ba9R\u5305\u4e0d\u518d\u51b2\u7a81\uff01<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u5e08\u59b9&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-08-15 19:00:12<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1aR\u8bed\u8a00\u5b66\u5f92<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484941&#038;idx=1&#038;sn=11d6781f61066de18672cdf675536a18\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484941&#038;idx=1&#038;sn=11d6781f61066de18672cdf675536a18<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 20px;margin-bottom: 25px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(249, 172, 172);box-shadow: rgb(249, 172, 172) 0px 0px 5px 3px;\">\n<section style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin-top: -14px;margin-bottom: -14px;\" powered-by=\"xiumi.us\">\n<p>{ \u70b9\u51fb\u84dd\u5b57\uff0c\u5173\u6ce8\u6211\u4eec }<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u4e0d\u77e5\u9053\u5404\u4f4d\u7684\u5c0f\u4f19\u4f34\u5728\u65e5\u5e38\u7684\u79d1\u7814\u5b66\u4e60\u4e2d\u662f\u5426\u9047\u5230\u8fc7\u8fd9\u79cd\u60c5\u51b5\u5462\uff1f\u4e0d\u540c\u7684\u9879\u76ee\u9700\u8981\u7684R\u5305\u4e0d\u592a\u76f8\u540c\uff0c\u5f53\u6211\u4eec\u5728\u540c\u4e00\u53f0\u7535\u8111\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u7684\u8bddR\u5305\u4f1a\u53d1\u751f\u7248\u672c\u51b2\u7a81\uff0c\u56e0\u4e3a\u8fd9\u79cd\u539f\u56e0\u9879\u76ee\u65e0\u6cd5\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u9879\u76ee\u7684\u8fd0\u884c\uff0c\u73af\u5883\u7684\u914d\u7f6e\u662f\u7b2c\u4e00\u9053\u96be\u5173\uff0c\u8fd9\u4e2a\u5c31\u76f8\u5f53\u4e8e\u6211\u4eec\u8fdb\u884c\u65e5\u5e38\u7684\u79d1\u7814\u5b9e\u9a8c\u4e2d\u7684\u5b9e\u9a8c\u6750\u6599\uff0c\u8bd5\u60f3\u4e00\u4e0b\u6750\u6599\u5de5\u5177\u90fd\u6ca1\u51c6\u5907\u597d\uff0c\u6211\u4eec\u8981\u5982\u4f55\u7ee7\u7eed\u6211\u4eec\u7684\u5b9e\u9a8c\u5462\uff1f\u540c\u65f6\uff0c\u8fd9\u4e5f\u662f\u4f17\u591a\u751f\u7269\u4fe1\u606f\u5b66\u7684\u7814\u7a76\u8005\u5171\u540c\u7684\u96be\u5173\uff0c\u5e76\u4e0d\u662f\u8bf4\u6709\u7ecf\u9a8c\u7684\u7814\u7a76\u8005\u5c31\u53ef\u4ee5\u8f7b\u677e\u7684\u8d8a\u8fc7\u8fd9\u9053\u96be\u5173\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u95ee\u9898\u51fa\u73b0\u7684\u539f\u56e0\u662f\u5199\u5404\u79cdR\u5305\u7684\u4f5c\u8005\u7528\u7684\u73af\u5883\uff0cR\u8bed\u8a00\u7684\u7248\u672c\u5e76\u4e0d\u4e00\u6837\uff0c\u6362\u8a00\u4e4b\u5c31\u662f\u6211\u4eec\u6240\u9700\u8981\u7684\u5b9e\u9a8c\u6750\u6599\u4e0d\u4e00\u6837\u5462\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u4f46\u8fd9\u4e2a\u4e5f\u5e76\u4e0d\u662f\u89e3\u51b3\u4e0d\u4e86\u7684\u4e8b\u60c5\u54e6\uff0c\u5404\u4f4d\u5c0f\u4f19\u4f34\u53ea\u8981\u628a\u6bcf\u4e2a\u5b9e\u9a8c\u6240\u9700\u8981\u7684\u5b9e\u9a8c\u6750\u6599\u5206\u95e8\u522b\u7c7b\u7684\u5206\u5f00\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u907f\u514d\u8fd9\u4e2a\u95ee\u9898\u5566~\u5c0f\u5e08\u59b9\u4eca\u5929\u5c31\u60f3\u6559\u7ed9\u5927\u5bb6\u5982\u4f55\u5c06\u6211\u4eec\u7684\u201c\u5b9e\u9a8c\u6750\u6599\u201d\uff0c\u6211\u4eec\u7684R\u8bed\u8a00\u73af\u5883\u7ed9\u5206\u5f00\uff01\u6211\u4eec\u4eca\u5929\u6240\u9700\u8981\u7684R\u5305\u4fbf\u662frenv\uff01<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u7b80\u5355\u7684\u4ecb\u7ecd\u4e00\u4e0b\uff0crenv \u5305\u53ef\u5e2e\u52a9\u6211\u4eec\u4e3a R \u9879\u76ee\u521b\u5efa\u53ef\u91cd\u73b0\u7684\u73af\u5883\u3002\u4f7f\u7528 renv \u4f7f\u60a8\u7684 R \u9879\u76ee\u66f4\u52a0\u72ec\u7acb\u3001\u53ef\u79fb\u690d\u548c\u53ef\u91cd\u590d\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><strong>\u9694\u79bb<\/strong>\uff1a\u4e3a\u4e00\u4e2a\u9879\u76ee\u5b89\u88c5\u65b0\u7684\u6216\u66f4\u65b0\u7684\u5305\u4e0d\u4f1a\u7834\u574f\u5176\u4ed6\u9879\u76ee\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002\u8fd9\u662f\u56e0\u4e3a renv \u4e3a\u6bcf\u4e2a\u9879\u76ee\u63d0\u4f9b\u4e86\u81ea\u5df1\u7684\u79c1\u6709\u7684library\u3002\u4fbf\u643a\u5f0f\uff1a\u8f7b\u677e\u5730\u5c06\u9879\u76ee\u4ece\u4e00\u53f0\u8ba1\u7b97\u673a\u4f20\u8f93\u5230\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\uff0c\u751a\u81f3\u8de8\u4e0d\u540c\u5e73\u53f0\u3002renv \u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u9879\u76ee\u6240\u4f9d\u8d56\u7684\u8f6f\u4ef6\u5305\u3002\u53ef\u91cd\u73b0\uff1arenv \u8bb0\u5f55\u6240\u4f9d\u8d56\u7684\u786e\u5207\u8f6f\u4ef6\u5305\u7248\u672c\uff0c\u5e76\u786e\u4fdd\u65e0\u8bba\u8d70\u5230\u54ea\u91cc\uff0c\u8fd9\u4e9b\u786e\u5207\u7248\u672c\u90fd\u662f\u5b89\u88c5\u7684\u7248\u672c\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u5c0f\u5e08\u59b9\u5728\u8fd9\u4e3a\u5927\u5bb6\u603b\u7ed3\u4e86\u4e00\u4efdrenv\u7684\u6d41\u7a0b\u56fe~<\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5527777777777778\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_XFbruIvBSUsQsQcDmg9b8PJS0OhJqA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvznwbjL10uFSdwtMlGyZ79vqUXFbruIvBSUsQsQcDmg9b8PJS0OhJqA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u4e0b\u9762\u5c0f\u5e08\u59b9\u5c31\u5f00\u59cb\u5e26\u5927\u5bb6\u4f53\u9a8c\u4e00\u4e0brenv\u7684\u57fa\u7840\u529f\u80fd\u5566~<\/p>\n<p style=\"white-space: normal;\">\u9996\u5148\uff0c\u6211\u4eec\u7b2c\u4e00\u6b65\u8fd8\u662f\u5f97\u5148\u5b89\u88c5R\u5305<\/p>\n<p style=\"white-space: normal;\">install.packages(&#8220;renv&#8221;)library(renv)<\/p>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;background-color: rgba(249, 172, 172, 0.19);min-width: 5%;height: auto;line-height: 1;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;margin-right: 8px;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;height: auto;background-color: rgba(249, 172, 172, 0.19);\">\n<section style=\"transform: translate3d(7px, 0px, 0px);margin-top: 3px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;\">\n<p style=\"white-space: normal;\"><strong>step 1<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u7b2c\u4e00\u6b21\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u5148\u4f7f\u7528renv::init()\u51fd\u6570\uff0c\u6fc0\u6d3b\u65b0\u7684\u9879\u76ee<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">env_dir &lt;- <span class=\"code-snippet__string\">\"E:\/SCP_env\"<\/span> <span class=\"code-snippet__comment\"># \u8bbe\u7f6e\u9879\u76ee\u7684\u8def\u5f84dir.create(env_dir)renv::init(project = env_dir)<\/span><\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.17471264367816092\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_7NW5GkibDuJN5LGHToiavXAp49XXGg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvKChuBm1MJ1QbOuROBfibpmDzF7K7NW5GkibDuJN5LGHToiavXAp49XXGg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"870\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5f53\u6211\u4eec\u7684\u7684Rstudio\u4e2d\u51fa\u73b0\u4ee5\u4e0a\u63d0\u793a\u65f6\uff0c\u5c31\u8bc1\u660e\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u52a0\u8f7d\u5b89\u88c5\u6210\u529f\u5566~<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u8fd0\u884c\u4ee5\u4e0a\u7684\u4ee3\u7801\u8fc7\u540e\uff0c\u4fbf\u4f1a\u65b0\u5efa\u9879\u76ee\u7684library\uff0c\u5176\u4e2d\u4f1a\u5305\u542b\u5f53\u524d\u6b63\u5728\u4f7f\u7528\u7684\u6240\u6709R\u5305\u3002\u8f6f\u4ef6\u5305\u4f1a\u88ab\u8bb0\u5f55\u5728renv.lock\u6587\u4ef6\u4e2d\uff0c\u4e14.Rprofile\u786e\u4fdd\u6bcf\u6b21\u6253\u5f00\u8be5\u9879\u76ee\u65f6\u90fd\u4f1a\u4f7f\u7528\u8fd9\u4e2alibrary\u3002\u6587\u4ef6\u76ee\u5f55\u957f\u8fd9\u6837\u54e6<\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.2785923753665689\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_jmndkKLExUHzPEcNpTktdrD0YvrU5g.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvVPdD44ibje2WXFK6cjphVTNnOjmndkKLExUHzPEcNpTktdrD0YvrU5g\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1023\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;background-color: rgba(249, 172, 172, 0.19);min-width: 5%;height: auto;line-height: 1;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;margin-right: 8px;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;height: auto;background-color: rgba(249, 172, 172, 0.19);\">\n<section style=\"transform: translate3d(7px, 0px, 0px);margin-top: 3px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;\">\n<p style=\"white-space: normal;\"><strong>step 2<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u6fc0\u6d3brenv\u73af\u5883\uff0c\u5f53\u6211\u4eec\u521b\u5efa\u9879\u76ee\u540e\u6211\u4eec\u9700\u8981\u7ee7\u7eed\u5b89\u88c5\u548c\u66f4\u65b0R\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">renv::install()or renv::update()<\/span><\/code><code><span class=\"code-snippet_outer\">renv::activate()<\/span><\/code><code><span class=\"code-snippet_outer\">renv::install()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5728\u6211\u4eec\u4e0b\u8f7d\u597d\u6240\u6709\u7684R\u5305\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528renv::snapshot()\u9501\u5b9a\u9879\u76ee\u4e2d\u8bb0\u5f55\u7684\u5305\u53ca\u5176\u4e0b\u8f7d\u7684\u6e90\uff08CRAN\/GitHub\u7b49\u7b49\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">renv::snapshot()<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3814814814814815\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_Qic9AbM0ibk07WGSb5G2S42Hib3Xhg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvdpCLLZ5t5aTKaEUdRibUgbUgrClrQic9AbM0ibk07WGSb5G2S42Hib3Xhg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u8fd9\u4e2a\u5c31\u662f\u5c0f\u5e08\u59b9\u8fdb\u884c\u5b89\u88c5\u65f6\u5019\u51fa\u73b0\u7684\u754c\u9762\uff0crenv\u4f1a\u5e2e\u6211\u4eec\u50a8\u5b58\u597dR\u5305\u53ca\u5176\u4e0b\u8f7d\u7684\u955c\u50cf\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u6211\u4eec\u4e5f\u53ef\u4ee5\u89c2\u5bdf\u4e00\u4e0b\u4e0b\u9762\u7684\u4e24\u4e2aR\u5305\u7684\u8def\u5f84\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u89c2\u7684\u4f53\u9a8c\u51farenv\u7684\u4f5c\u7528\u5566\uff01<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u8fd9\u4e00\u5f20\u56fe\u662f\u4f7f\u7528renv\u5305\u65f6\uff0clibrary\u7684\u8def\u5f84<\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.06574074074074074\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_G9wQj9ZQZEUB5uk47uL9YGOzJJ8c7g.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvyNArFttzC1x6iaeAm6UcxLCKgG9wQj9ZQZEUB5uk47uL9YGOzJJ8c7g\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u800c\u8fd9\u4e00\u5f20\u662f\u5c0f\u5e08\u59b9\u7b14\u8bb0\u672c\u4e0a\u7684library\u8def\u5f84<\/p>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.08794326241134752\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_zOIt7XqxUtHia59ClFGrnemka7IwQw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEUDXQyBiakER6DKcB8QSa4RvK9S4thu1uho4yWGsz8zFUfFz3zOIt7XqxUtHia59ClFGrnemka7IwQw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"705\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;background-color: rgba(249, 172, 172, 0.19);min-width: 5%;height: auto;line-height: 1;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;margin-right: 8px;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;height: auto;background-color: rgba(249, 172, 172, 0.19);\">\n<section style=\"transform: translate3d(7px, 0px, 0px);margin-top: 3px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;\">\n<p style=\"white-space: normal;\"><strong>step 3<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u5982\u679c\u5c0f\u4f19\u4f34\u4eec\u9700\u8981\u4e0e\u5176\u4ed6\u4eba\u5171\u4eab\u4ee3\u7801\u6216\u5728\u65b0\u73af\u5883\u4e2d\u4e0a\u8fd0\u884c\u8fd9\u4e2a\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u8c03\u7528 renv::restore() \u6765\u91cd\u65b0\u5b89\u88c5\u9501\u5b9a\u6587\u4ef6\u4e2d\u8bb0\u5f55\u7684\u7279\u5b9a\u8f6f\u4ef6\u5305\u7248\u672c\u3002<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">renv::restore()<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;background-color: rgba(249, 172, 172, 0.19);min-width: 5%;height: auto;line-height: 1;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;margin-right: 8px;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 16px;vertical-align: top;overflow: hidden;background-color: rgb(249, 172, 172);\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 8px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);box-shadow: rgb(255, 255, 255) 8px 8px 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;height: auto;background-color: rgba(249, 172, 172, 0.19);\">\n<section style=\"transform: translate3d(7px, 0px, 0px);margin-top: 3px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;\">\n<p style=\"white-space: normal;\"><strong>step 4<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u6700\u540e\u4e00\u6b65\uff0c\u5f53\u6211\u4eec\u4e0d\u9700\u8981\u4f7f\u7528renv\u5566\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528renv::deactivate()\u51fd\u6570\u5173\u95edrenv\u5305\uff0c\u7ee7\u7eed\u4f7f\u7528\u4e3b\u4f53\u7684R\u8bed\u8a00\u7684\u73af\u5883\u54e6~<br  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">renv::deactivate()<\/span><\/code><\/pre>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5c0f\u5e08\u59b9\u4e3a\u5927\u5bb6\u603b\u7ed3\u4e00\u4e0b~renv\u5305\u4e3a\u5927\u5bb6\u5728\u4f7f\u7528\u4e0d\u540c\u9879\u76ee\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u5927\u5bb6\u521b\u5efa\u4e0d\u540c\u7684library\u8def\u5f84\uff0c\u4ee5\u4fbf\u4e8e\u51cf\u5c11R\u5305\u7684\u7248\u672c\u51b2\u7a81\uff0c\u66ff\u5927\u5bb6\u5206\u5f00\u201c\u5b9e\u9a8c\u6750\u6599\u201d\uff0c\u4e5f\u662f\u4fbf\u4e8e\u540e\u671f\u5bf9\u9879\u76ee\u7684\u590d\u73b0\u54e6\uff0c\u8981\u77e5\u9053\uff0c\u5728\u8ba1\u7b97\u673a\u9886\u57df\uff0c\u54ea\u6015\u662f\u4e00\u6837\u7684\u4ee3\u7801\uff0c\u65f6\u95f4\u4e0d\u4e00\u6837\u4e5f\u4f1a\u5bfc\u81f4\u7ed3\u679c\u7684\u4e0d\u4e00\u81f4\u54e6\uff01<br  \/><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u4eca\u5929\u5c0f\u5e08\u59b9\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\u5566\uff01\u5927\u5bb6\u5728\u4ee5\u540e\u521b\u5efa\u65b0\u7684\u79d1\u7814\u9879\u76ee\u65f6\u53ef\u4ee5\u7528\u4e0arenv\u8fd9\u4e2aR\u5305\uff0c\u51cf\u5c11\u57fa\u7840\u7684\u95ee\u9898\uff0c\u8de8\u8fc7\u73af\u5883\u914d\u7f6e\u8fd9\u9053\u96be\u5173\u5462\uff01\u5982\u679c\u5c0f\u4f19\u4f34\u6709\u5176\u4ed6\u6570\u636e\u5206\u6790\u9700\u6c42\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\u4e91\u5e73\u53f0\uff0c\u96f6\u4ee3\u7801\u5b8c\u6210\u5206\u6790\uff0c\u975e\u5e38\u65b9\u4fbf\u5965\uff0c\u4e91\u5e73\u53f0\u7f51\u5740\u4e3a\uff1ahttp:\/\/www.biocloudservice.com\/home.html\u3002<\/p>\n<\/section>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: 40%;padding-right: 10px;align-self: center;flex: 0 0 auto;\">\n<section style=\"font-size: 6px;margin-right: 0%;margin-left: 0%;text-align: right;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;border-width: 1px;border-style: solid;border-color: rgba(255, 255, 255, 0);background-color: rgb(232, 250, 150);text-align: center;width: 1.8em;height: 1.8em;line-height: 1.8em;border-radius: 100%;margin-left: auto;margin-right: auto;color: transparent;\">\n<p>1<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: 20%;align-self: center;flex: 0 0 auto;\">\n<section style=\"margin-right: 0%;margin-left: 0%;text-align: center;font-size: 21px;\" powered-by=\"xiumi.us\">\n<section style=\"background-color: rgb(239, 135, 135);display: inline-block;width: 2.5em;height: 2.5em;line-height: 2.5em;border-radius: 100%;margin-left: auto;margin-right: auto;color: rgb(255, 255, 240);\">\n<p><strong>END<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: 40%;padding-left: 10px;align-self: center;flex: 0 0 auto;\">\n<section style=\"font-size: 6px;margin-right: 0%;margin-left: 0%;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;border-width: 1px;border-style: solid;border-color: rgba(255, 255, 255, 0);background-color: rgb(232, 250, 150);text-align: center;width: 1.8em;height: 1.8em;line-height: 1.8em;border-radius: 100%;margin-left: auto;margin-right: auto;color: transparent;\">\n<p>1<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5555555555555556\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_akXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ-8.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEXjjmsEC5aXz0RE4be2ib1fJPnBD8yX0Z6OF2zocd2ngHpLOakXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"900\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p style=\"margin-bottom: 24px;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&amp;mid=2247484573&amp;idx=1&amp;sn=2e033658d20b5502fcfa151fc5d78527&amp;chksm=cfd53f32f8a2b6242a98484d3b1f1b456d83aaf135bda09a0e565d5b6836f64b88188c84cd2e&amp;scene=21#wechat_redirect\" textvalue=\"\u4f60\u5df2\u9009\u4e2d\u4e86\u6dfb\u52a0\u94fe\u63a5\u7684\u5185\u5bb9\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"1\" rel=\"noopener\"><span class=\"js_jump_icon h5_image_link\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.35083798882681566\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_LzaFJVwzzLgfnj6Qf8lBiaTR4Pziag-1.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/oCSOtP61aEUEOPhTDbhztaU7davdEP2YWOAtToI143Aic2TkkStosJ9iahcnLzaFJVwzzLgfnj6Qf8lBiaTR4Pziag\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"895\" style=\"\"  data-recalc-dims=\"1\" \/><\/span><\/a><\/p>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528renv\u7ba1\u7406\u9879\u76ee\uff0c\u8ba9R\u5305\u4e0d\u518d\u51b2\u7a81\uff01 \u5c0f\u5e08\u59b9&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp;&nbsp;2023- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/58582"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58582"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/58582\/revisions"}],"predecessor-version":[{"id":58591,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/58582\/revisions\/58591"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58582"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}