Toot

Written by Ella Kaye on 2024-11-04 at 09:55

What’s best practice with {testthat} for testing an #RStats function that relies on the current date? e.g.

days_from_today <- function(date) {

as.numeric(as.Date(date) - Sys.Date())

}

=> More informations about this toot | View the thread | More toots from ellakaye@fosstodon.org

Mentions

Tags

=> View rstats tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113424083039239665
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
304.50226 milliseconds
Gemini-to-HTML Time
0.623315 milliseconds

This content has been proxied by September (3851b).