Skip to content

Commit

Permalink
add r-universe url in description (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
DyfanJones authored Dec 31, 2024
1 parent 8e23e51 commit 11bbc2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions make.paws/R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ write_description_category <- function(path, package, title, description,
Suggests = "testthat",
BugReports = "https://github.com/paws-r/paws/issues",
License = "Apache License (>= 2.0)",
URL = "https://github.com/paws-r/paws",
URL = sprintf("https://github.com/paws-r/paws, https://paws-r.r-universe.dev/%s", fs::path_file(path)),
Encoding = "UTF-8",
Roxygen = 'list(markdown = TRUE, roclets = c("rd", "namespace", "collate"))'
)
Expand Down Expand Up @@ -61,9 +61,9 @@ get_version <- function(major = 0, minor = 0, patch = 0) {
if (is.null(cache_env$version)) {
df <- as.data.frame(utils::available.packages(repos = "https://cran.rstudio.com"))
cache_env$version <- package_version(df[df$Package == "paws", "Version"])
cache_env$version[[c(1,1)]] <- cache_env$version$major + major
cache_env$version[[c(1,2)]] <- cache_env$version$minor + minor
cache_env$version[[c(1,3)]] <- cache_env$version$patch + patch
cache_env$version[[c(1, 1)]] <- cache_env$version$major + major
cache_env$version[[c(1, 2)]] <- cache_env$version$minor + minor
cache_env$version[[c(1, 3)]] <- cache_env$version$patch + patch
}
return(cache_env$version)
}
Expand Down

0 comments on commit 11bbc2e

Please sign in to comment.