<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Adam H. Sparks</title>
    <link>/</link>
    <description>Recent content on Adam H. Sparks</description>
    <generator>Hugo</generator>
    <language>en-AU</language>
    <lastBuildDate>Sat, 24 Jan 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Look Ma, no codecov.io!</title>
      <link>/2026/01/24/look-ma-no-codecov-io/</link>
      <pubDate>Sat, 24 Jan 2026 00:00:00 +0000</pubDate>
      <guid>/2026/01/24/look-ma-no-codecov-io/</guid>
      <description>Recently I had asked the Fediverse how I could get codecov.io to work with Codeberg Actions. Ultimately, it&amp;rsquo;s not possible to do so directly. But, I then realised that I didn&amp;rsquo;t need codecov.io at all. codecov.io is a third-party service that hosts code coverage reports. But with a local R session, I can generate and view these reports directly within my repository.&#xA;I set up my README to include a badge that shows the code coverage percentage using the {covr} package.</description>
    </item>
    <item>
      <title>Estimation of AUDPC From Two Points</title>
      <link>/2025/01/22/estimation-of-audpc-from-two-points/</link>
      <pubDate>Wed, 22 Jan 2025 00:00:00 +0000</pubDate>
      <guid>/2025/01/22/estimation-of-audpc-from-two-points/</guid>
      <description>Today we had a data set come in that the researcher requested AUDPC (Area Under the Disease Progress Curve) [@Shaner1977] be calculated from two points. This is a common request as it&amp;rsquo;s quite time and labour intensive to collect these data, especially in breeding trials and can be done with a simple formula from @Jeger2001. However, I wasn&amp;rsquo;t aware of any R package that implemented this calculation, so I wrote a function to do it.</description>
    </item>
    <item>
      <title>Plotting Perth Month of May High Temperatures with {weatherOz}</title>
      <link>/2025/01/10/plotting-perth-month-of-may-high-temperatures-with-weatheroz/</link>
      <pubDate>Fri, 10 Jan 2025 00:00:00 +0000</pubDate>
      <guid>/2025/01/10/plotting-perth-month-of-may-high-temperatures-with-weatheroz/</guid>
      <description>Recently the ABC had an article that covered the high temperatures for Perth in May from 1897 to current with a chart showing the values over time. I thought it would be fun to use {weatherOz} to recreate this and maybe dig a little deeper.&#xA;To start, you will need to install {weatherOz}, which currently was not on CRAN (when this was originally written) and {hrbrthemes} from GitHub as it is ahead of the CRAN version.</description>
    </item>
    <item>
      <title>Fetch NASA POWER Data Using a Data Frame of Locations</title>
      <link>/2024/06/13/fetch-nasa-power-data-using-a-data-frame-of-locations/</link>
      <pubDate>Thu, 13 Jun 2024 00:00:00 +0000</pubDate>
      <guid>/2024/06/13/fetch-nasa-power-data-using-a-data-frame-of-locations/</guid>
      <description>Usually when you use {nasapower} to fetch data, you use a vector of longitude and latitude locations to make requests from the API. But if you have coordinates in a data frame, e.g., sample locations with sampling dates that you want POWER weather data for, it may not be as intuitive. Here&amp;rsquo;s a quick illustration how you can use a data frame object to feed into get_power() and fetch relative humidity data that way using {purrr} and {dplyr}.</description>
    </item>
    <item>
      <title>Using the R {curl} Library to List FTP Site Files</title>
      <link>/2024/06/09/using-the-r-curl-library-to-list-ftp-site-files/</link>
      <pubDate>Sun, 09 Jun 2024 00:00:00 +0000</pubDate>
      <guid>/2024/06/09/using-the-r-curl-library-to-list-ftp-site-files/</guid>
      <description>Converting a relatively obscure GitHub Gist to a proper blog post.&#xA;There are still some sites that use FTP, not a more modern API or even just http(s). I&amp;rsquo;m looking at you BOM. Sometimes it&amp;rsquo;s useful to know what files are available on the server in you R session.&#xA;Using this code snippet you can easily get a list of files on the FTP server in your R session.&#xA;1 library(curl) ## Using libcurl 8.</description>
    </item>
    <item>
      <title>About</title>
      <link>/about/</link>
      <pubDate>Thu, 05 May 2016 21:48:51 -0700</pubDate>
      <guid>/about/</guid>
      <description>I currently am employed as a professor of biometry and agricultural data analytics at Curtin University with the Centre for Crop and Disease Management (CCDM) in the Curtin Biometry and Agricultural Data Analytics (CBADA) group, providing technical leadership for the Analytics for the Australian Grains Industry (AAGI) project. I have training in botanical epidemiology and ecology training and specialise in biometry, agricultural simulation modelling and geographic information systems (GIS). I have expertise in R programming and have developed several tools to help gather weather and climate data and study pathogen populations using R and have also recently started using Julia too.</description>
    </item>
    <item>
      <title>Code</title>
      <link>/code/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/code/</guid>
      <description>As a part of practising open science and reproducible research, some of my software&amp;rsquo;s code is available at my GitHub, adamhsparks, and Codeberg, adamsparks, profiles or from CRAN or the Julia package registry.&#xA;Weather or Climate Data API Clients and Utilities for R {chirps} &amp;ndash; Climate Hazards Group InfraRed Precipitation with Station Data (CHIRPS) API data client for R&#xA;{CropWaterBalance} &amp;ndash; Climate water balance for irrigation purposes in R&#xA;{getCRUCLdata} &amp;ndash; University of East Anglia Climate Research Unit (CRU) climate data API client for R</description>
    </item>
    <item>
      <title>Research</title>
      <link>/research/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/research/</guid>
      <description>Highlighted research papers and project outputs Research compendium for &amp;ldquo;Timing of triazole-based spray schedules for controlling powdery mildew in Australia: a meta-analysis&amp;rdquo;&#xA;Research compendium for &amp;ldquo;The role of conidia in the dispersal of Ascochyta rabiei&amp;rdquo;&#xA;Research compendium for &amp;ldquo;Aerial spread of smut spores during peanut harvest&amp;rdquo;&#xA;R Scripts and supporting data for creating metamodels, as published in Ecosphere, and using them to generate global estimates of potato late blight risk based on climate data as published in Global Change Biology.</description>
    </item>
  </channel>
</rss>
