<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dichika</author_name>
  <author_url>https://blog.hatena.ne.jp/dichika/</author_url>
  <blog_title>盆栽日記</blog_title>
  <blog_url>https://dichika.hateblo.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>testthatパッケージを使ったので簡単なメモを残す。 詳しくはこちら参照のこと。 http://adv-r.had.co.nz/Testing.html 考え方 テストの粒度によって、expect、test、contextの３つが考慮されている。 粒度の大きさとしてはcontext＞test＞expectとなっている。 関数のテストはexpect単位で書いて、それをtestでまとめるというのが基本形。 規模が大きくなるとtestをさらにcontextでまとめる。 テストの書き方 以下のようにして作ったadd関数をテストしたいとする。 add &lt;- function(x,y)x+y 現在の作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F20140308%2Fp1&quot; title=&quot;testthatメモ - 盆栽日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-08 00:00:00</published>
  <title>testthatメモ</title>
  <type>rich</type>
  <url>https://dichika.hateblo.jp/entry/20140308/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
