Skip to content

Releases: USFWS/migbirdHIP

v1.4.10

05 Dec 19:59

Choose a tag to compare

migbirdHIP 1.4.10

Minor changes / bug fixes

  • Replaced ID start date with 12/1/2024.
  • Fixed time to read in files message returned by read_hip().

v1.4.9

04 Dec 16:19

Choose a tag to compare

migbirdHIP 1.4.9

Minor changes / bug fixes

issueDecide() was returning "overlap" as a result in the decision field, and the "overlap" records were being dropped. This should not happen; "overlap" records should be assigned "future" or "current" and only "past" records are to be dropped.

Full Changelog: v1.4.8...v1.4.9

v1.4.8

26 Sep 20:24

Choose a tag to compare

migbirdHIP 1.4.8

Major changes & new features

  • Evaluate Mississippi issue dates
    • Add MS to REF_DATES
    • No longer assign "MS" as decision in issueCheck()
    • No longer exclude "MS" from nDropped() or dl_report.qmd
  • Added 3 new internal functions:
    • permitFileBagsMessage()
      • Used by readMessages().
      • Checks for non-zero bag values from permit file state/species combinations and returns a message to the console if they are detected.
    • failBTPI() and failCR()
      • Used by write_hip().
      • Moved checks from write_hip() to failBTPI() and failCR() to reduce maintenance of repeated assertions.
      • Added warning to failBTPI() to return message to console if any BTPI permit records contain 0 for dove_bag.

Minor changes / bug fixes

  • write_hip()
    • Minor changes to match modern tidyverse syntax
    • Add check to ensure REF_PMT_FILES states are not in zero_translations
  • REF_BAGS changes:
    • Bug fixes
      • Add lines for missing, existing, and expected bag values
        • UT band_tailed_pigeon bag 2 -> stratum 2
        • MN cranes bag 2 -> stratum 2
    • Update
      • Add line for FL geese_bag bag 0 -> stratum 0

v1.4.7

25 Sep 18:07

Choose a tag to compare

migbirdHIP 1.4.7

Minor changes / bug fixes

  • Add stateBagValue of 3 and 5 to REF_BAGS for IA woodcock_bag

v1.4.6

15 Sep 17:37

Choose a tag to compare

migbirdHIP 1.4.6

Minor changes / bug fixes

  • Updated REF_DATES$issue_start for FL to be 2025-04-01

v1.4.5

11 Sep 15:22

Choose a tag to compare

migbirdHIP 1.4.5

Minor changes / bug fixes

  • Edited nDroppedClean() function to capture records if they contain an NA value in any one bag field, in addition to existing rule that captures records if all bag fields are NA.

v1.4.4

28 Aug 14:11

Choose a tag to compare

migbirdHIP 1.4.4

Minor changes / bug fixes

  • Updated REF_BAGS stateBagValue to 5 for CO dove_bag (previously 4)

v1.4.3

14 Aug 20:26

Choose a tag to compare

migbirdHIP 1.4.3

Minor changes / bug fixes

  • Edited proofBadEmails() to allow all variations of ccTLDs to be accepted for yahoo, hotmail, outlook, and live email domains.
    • The previously strict filter only accepted .com, .co.uk, .fr, .es, .ca, and .de for yahoo and hotmail email addresses. In addition, only .com was accepted for live and outlook email addresses.
    • Now, live European ccTLDs and yahoo emails with Indian and Australian ccTLDs, to name a few examples, will pass without being flagged as errors.

v1.4.2

14 Aug 16:04

Choose a tag to compare

migbirdHIP 1.4.2

Patch to fix bug and allow NA values in email field.

Minor changes / bug fixes

  • NA emails are not errors!
    • Updated proofBadEmails() to allow NA values in email field.
    • Updated proofBadEmails() function description so that the criteria for good emails is clear on the help page.
    • Updated test-proof.R unit testing.
    • Edited create_fake_HIP_data.R and overwrote internal test data stored in /inst/extdata/DL0901/, /tests/testthat/data/DL0902/, and DF_TEST objects by introducing NA values to email field.
  • Edited zzz.R to return a startup error message in case the package version in the DESCRIPTION was modified before appending REF_RELEASES in variables.R.

Full Changelog: v1.4.1...v1.4.2

v1.4.1

13 Aug 18:54

Choose a tag to compare

migbirdHIP 1.4.1

This is the release for the 2025-2026 hunting season, pushed a day before DL0800.

Major changes & new features

  • Import {ggnewscale} for use of ggnewscale::new_scale_color() in issue_plot().
  • New internal nDropped() function (with helpers nDroppedClean() and nDroppedCurrent()) to summarize the number of dropped HIP registrations (by state or not) at each step of pre-processing.
  • Eliminated issue template.

Minor changes / bug fixes

  • Updated DESCRIPTION with updated Imports and Suggests package versions.
  • Updated sysdata.rda
    • REF_DATES updated using 2025-2026 issue window dates.
    • REF_ZIP_CODE and REF_BAGS remain the same, using 2024-2025 zip codes and bag/strata conversions.
  • Functions
    • read_hip(): add message that reports how long it took to read in N number of files
    • writeReport(): add more dependency checks
    • badRegYearMessage(): summarize by source file because it is more informative
    • invalidDateMessage(): created and added to issueMessages()
    • huntMigBirdsMessage(): created and added to readMessages()
    • duplicateFix(): bug fix, stopped returning duplicate_id field in the output tibble
    • issuePlot()
      • Improved plot appearance for clarity of interpretation
      • Added more colors to the registration year palette to avoid an error of insufficient values in case of outliers
    • Refined message text for zipCheck(), cranePermitBagFix(), btpiPermitBagFix(), regYearEditMessage(), zeroDateMessage(), missingPIIMessage(), missingEmailsMessage(), testRecordMessage(), zeroBagsMessage(), naBagsMessage(), nonDigitBagsMessage(), huntMigBirdsMessage(), dlStateNAMessage(), dlDateNAMessage(), inLinePermitDNHMessage(), and badRegYearMessage()
  • Changes to dl_report.qmd template
    • Add nDropped() summary to the Agenda tab
    • Refined excluded messages in important_statistics
    • Split data processing into smaller chunks to waste less time debugging
  • Unit tests
    • Suppress verbose messages in test-clean.R
    • Add test-nDropped.R
  • Linted all files
  • Updated WORDLIST