
Version 0.2
artsend 0.2.0
Breaking changes
send_artist_invitation()is nowsend_artist_invite()for consistency with naming conventions.send_metrics_access_confirmation()is nowsend_metrics_confirm().send_metrics_access_granted()is nowsend_metrics_granted().send_metrics_admin_notification()is nowsend_metrics_admin().send_waitlist_confirmation()is nowsend_waitlist_confirm().send_whitepaper_email()is nowsend_wp_email().validate_email_format()is nowvalidate_email_fmt(). Theallow_display_nameargument is nowallow_disp_name.send_contact_email()argumentmessageis nowmsg,artwork_titleis nowart_title, andartwork_urlis nowart_url.send_wp_email()argumentuser_typeis nowusr_typeandwhitepaper_urlis nowwp_url.send_investor_welcome()argumentinclude_dataroomis nowincl_dataroom.send_artist_invite()argumentonboarding_urlis nowonboard_url.send_metrics_confirm()andsend_metrics_admin()argumentrequest_idis nowreq_id.send_metrics_admin()argumentrequest_detailsis nowreq_details.
Improvements
All functions now use {stringr} for pattern matching instead of base R
grepl()for consistency with tidyverse style.Internal template functions are now properly prefixed with
.and co-located with their calling functions for better code organization.Standardized {httr2} response handling with consistent variable naming (
respfor raw response,parsedfor parsed body,cfgfor configuration).Consolidated email templates from separate files into their respective sending function files, reducing file count and improving maintainability.
Renamed
utils. Rtointernal-utils.Rfollowing internal file naming conventions.Added {stringr} to Imports for
stringr::str_detect()usage.Removed unused {jsonlite} from Imports.
Internal
Deleted obsolete
email-template.Randmetrics-email-templates.Rfiles.Internal validation function
validate_email_params()is now.validate_email_params().All internal template builder functions now use
.build_*naming pattern.
artsend 0.2.1
Improvements
Tests now follow coding standards:
stringr::str_detect()instead ofgrepl(),cfginstead ofconfig, standardizedpath_mocks()helper.Test suite refactored to test internal functions through public API rather than directly, improving maintainability.
Mock fixture directories shortened for portable file names (<100 bytes).
Added
VignetteBuilder: quartoand {quarto} to Suggests for vignette support.Fixed pkgdown site URL to
https://docs.artalytics.dev/r/artsend/.Updated
.Rbuildignorefor full R CMD check compliance (0 errors, 0 warnings, 0 notes).
artsend 0.2.2
Improvements
Added rate limiting to all email sending functions using
httr2::req_throttle(rate = 2)to respect Resend API’s 2 requests/second limit.Added automatic retry logic with
httr2::req_retry(max_tries = 3)for handling transient 429 (rate limit) and 503 (service unavailable) errors with exponential backoff.Replaced
glue::glue()withstringr::str_glue()throughout codebase for consistency (stringr re-exports str_glue from glue).Replaced
gsub()withstringr::str_replace_all()in email template processing.Replaced
sprintf()withstringr::str_glue()for string interpolation.Removed {glue} from Imports (no longer needed as stringr provides str_glue).