{"id":16876367,"url":"https://github.com/fcce/rpy2","last_synced_at":"2025-04-11T11:32:39.413Z","repository":{"id":10750773,"uuid":"13010474","full_name":"fcce/rpy2","owner":"fcce","description":"Calling R from python use Rpy2 /Windows","archived":false,"fork":false,"pushed_at":"2017-09-22T08:04:27.000Z","size":5753,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T07:51:12.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-22T08:48:39.000Z","updated_at":"2020-05-12T08:02:16.000Z","dependencies_parsed_at":"2022-08-26T14:21:48.128Z","dependency_job_id":null,"html_url":"https://github.com/fcce/rpy2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcce%2Frpy2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcce%2Frpy2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcce%2Frpy2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcce%2Frpy2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcce","download_url":"https://codeload.github.com/fcce/rpy2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384128,"owners_count":21094674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T15:39:13.388Z","updated_at":"2025-04-11T11:32:39.363Z","avatar_url":"https://github.com/fcce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python 通过rpy2调用 R语言\n\n**系统环境**\n\n```\npython 2.7.4  32bit\nR 3.0.1  i386-w64-mingw32/i386 (32-bit)\nrpy2 2.3.7  32bit\nwindows 8  64bit\n```\n\n### 安装方法\n\nrpy2 官方不支持windows了，python 2.7安装官方版本会报错。\n\n下面的地址安装非官方的 rpy2 \n\n安装地址：[http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2](http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2)\n\n注意：（这里没有测试，因为我之前安装了numpy 和 vc++ 2008，如果安装出错这里也许有帮助）\n\u003eMany binaries depend on Numpy-MKL 1.7 and/or the Microsoft Visual C++ 2008 (64 bit or 32 bit, for CPython 2.6 to 3.2) redistributable packages.\n\nrpy2的文档在[这里](http://rpy.sourceforge.net/rpy2/doc-2.3/html/index.html)\n\n需要设置环境变量：\n    \n    path :安装路径\\bin  #例如 C:\\R-3.0.1\\bin\n    R_Home :安装路径  #例如 C:\\R-3.0.1\n    R_User ：可以也设置为安装路径  #例如 C:\\R-3.0.1\\bin\n\n简单的例子：\n\n    import rpy2\n    from rpy2 import robjects as ro\n    r=ro.r\n    r(\"pi\")\n\n[example](https://github.com/kalelfc/rpy2/tree/master/example)文件夹中将给出各种例子\n\n### 参考资料\n\n- [sourceforge.net](http://sourceforge.net/mailarchive/forum.php?set=custom\u0026viewmonth=\u0026viewday=\u0026forum_name=rpy-list\u0026style=nested\u0026max_rows=75\u0026submit=Change+View)\n- [www.blogosfera.co.uk](http://www.blogosfera.co.uk/2012/06/install-rpy2-on-windows7-64bit-for-python-2-7/)\n- [Github--bwallace/OpenMeta-analyst-](https://github.com/bwallace/OpenMeta-analyst-/wiki/Setting-up-a-development-environment)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcce%2Frpy2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcce%2Frpy2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcce%2Frpy2/lists"}