if (FALSE) {
# Example data structure
last_version <- list(version = "1.0.10", date = "2024-01-01")
all_versions <- list(
list(version = "1.0.0", date = "2023-01-01"),
list(version = "1.0.10", date = "2024-01-01")
)
# Get the URL for the latest version of "dplyr"
url <- get_cran_package_url("dplyr", NULL, last_version, all_versions)
print(url)
}
Run the code above in your browser using DataLab