<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Xml2 on rostrum.blog</title>
    <link>https://www.rostrum.blog/tags/xml2/</link>
    <description>Recent content in Xml2 on rostrum.blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Sun, 11 Jun 2023 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.rostrum.blog/tags/xml2/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Extract run data from Apple Health (redux)</title>
      <link>https://www.rostrum.blog/2023/06/11/apple-health-redux/</link>
      <pubDate>Sun, 11 Jun 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2023/06/11/apple-health-redux/</guid>
      <description>tl;dr You can use R to extract running details from a downloaded of your Apple Health data. My old code broke, so I re-wrote it.
 On your marks In 2021 I extracted my running activities from my Apple Health data using the {xml2} package. You can read there for some theory and background.
At that point I’d been running for one year. I’m nearly at 500 runs1, so I thought I would re-execute my code with the latest data.</description>
    </item>
    
    <item>
      <title>Decay is inevitable, accept {linkrot}?</title>
      <link>https://www.rostrum.blog/2021/07/10/linkrot/</link>
      <pubDate>Sat, 10 Jul 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2021/07/10/linkrot/</guid>
      <description>tl;dr I wrote a little function to check web pages for link rot and put it in the tiny R package {linkrot} in case you want to use or improve it.
 Page not found You’ve clicked a link before and been taken somewhere you weren’t expecting. Sometimes it’s because you’ve been rickrolled,1 sure, but content on the internet is constantly being moved or removed and links break all the time.</description>
    </item>
    
    <item>
      <title>Apple Health and Nike Run Club with {xml2}</title>
      <link>https://www.rostrum.blog/2021/03/23/xml-health/</link>
      <pubDate>Tue, 23 Mar 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2021/03/23/xml-health/</guid>
      <description>Run barcode: one year of runs, darker bands are longer distances.  tl;dr You can export your Apple Health data as an XML file. This includes workouts linked from other apps, like Nike Run Club. I used the R packages {xml2} and the tidyverse to extract and clean my step counts and running activity.
 App storage My healthcare provider peeks at the Apple Health app and rewards me if I meet daily step-count targets.</description>
    </item>
    
    <item>
      <title>{altcheckr}: check image alt text from R</title>
      <link>https://www.rostrum.blog/2019/12/08/altcheckr/</link>
      <pubDate>Sun, 08 Dec 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2019/12/08/altcheckr/</guid>
      <description>tl;dr I’ve made a small R package called {altcheckr} that checks the accessibility of images on web pages. It has functions that (1) scrape attributes from HTML  elements on a web page and (2) apply simple rules to indicate the suitability of the alt text provided. To use:
remotes::install_github(&amp;quot;matt-dray/altcheckr&amp;quot;) images &amp;lt;- alt_get(&amp;quot;https://www.bbc.co.uk/news&amp;quot;) alt_check(images) I’m not an expert and the package has not been user tested.
 Accessibility A web site is accessible if everyone can engage with its content.</description>
    </item>
    
  </channel>
</rss>