<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minesot</author_name>
  <author_url>https://blog.hatena.ne.jp/minesot/</author_url>
  <blog_title>デジタルパソロジー</blog_title>
  <blog_url>https://www.ai-pathology.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>R</anon>
    <anon>Linux</anon>
  </categories>
  <description>Python から R を使えるようにする方法として、rpy2 というライブラリーを使用することができます. インストールする方法を記します. 前提として python と R がインストールされている必要があります. pip でのインストール 1. まずは普通に、pip でインストールできます. Copy pip install rpy2 2. 以下のコマンドを実行して、R が動くことを確認する. Copy import rpy2.robjects as roresult = ro.r(&quot;10&quot;)print(result) 結果として # [1] 10 が表示されれば動いています. cond…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.ai-pathology.com%2Fentry%2F2023%2F01%2F20%2F091645&quot; title=&quot;Python で R を使うパッケージ  rpy2 のインストール - デジタルパソロジー&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/minesot/20230709/20230709092304.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-20 09:16:45</published>
  <title>Python で R を使うパッケージ  rpy2 のインストール</title>
  <type>rich</type>
  <url>https://www.ai-pathology.com/entry/2023/01/20/091645</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
