if (FALSE) { # rlang::is_installed("geosphere")
# \donttest{
# calculate day length, use barrks_data()$tmin as template
dl <- create_daylength_rst(barrks_data()$tmin, .quiet = TRUE)
# plot day length on May 1st, 2015
terra::plot(dl[[terra::time(dl) == '2015-05-01']])
# }
}
Run the code above in your browser using DataLab