Skip to content

Commit

Permalink
Merge pull request #11 from shikokuchuo/main
Browse files Browse the repository at this point in the history
Aligns with R-Multiverse infrastructure
  • Loading branch information
wlandau authored May 29, 2024
2 parents 2e46e6c + 6ed1ee0 commit c73b933
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Title: Tools for Contributing Packages to R-multiverse
Description: 'R-multiverse' is a community-curated collection of
R package releases, powered by 'R-universe'. The 'multitools' package
has tools for maintainers of packages in 'R-multiverse'.
Version: 0.1.0
Version: 0.1.1
License: MIT + file LICENSE
URL:
https://r-multiverse.org/multitools/,
Expand Down Expand Up @@ -41,8 +41,7 @@ Depends:
R (>= 4.0.0)
Imports:
jsonlite,
tibble,
utils
tibble
Suggests:
curl,
knitr (>= 1.30),
Expand Down
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ export(check_versions)
importFrom(jsonlite,read_json)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(utils,browseURL)
importFrom(utils,globalVariables)
importFrom(utils,install.packages)
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# multitools 0.5.0
# multitools 0.1.1

* Aligns with R-Multiverse infrastructure.

# multitools 0.1.0

* Rename package.

Expand Down
22 changes: 13 additions & 9 deletions R/check_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,29 @@ check_versions <- function() {
manifest <- file.path(
"https://raw.githubusercontent.com",
"r-multiverse",
"r-multiverse.r-universe.dev",
"checks",
"main",
"version_issues.json"
"versions.json"
)
out <- jsonlite::read_json(
path = manifest,
simplifyVector = TRUE,
simplifyDataFrame = TRUE
)
out <- tibble::as_tibble(out)
if (nrow(out) < 1L) {
out <- tibble::tibble(
package = character(0L),
version_current = character(0L),
version_highest = character(0L),
hash_current = character(0L),
hash_highest = character(0L)
return(
tibble::tibble(
package = character(0L),
version_current = character(0L),
version_highest = character(0L),
hash_current = character(0L),
hash_highest = character(0L)
)
)
}
out <- out[out[["version_current"]] != out[["version_highest"]] |
out[["hash_current"]] != out[["hash_highest"]], ]
out <- tibble::as_tibble(out)
order <- c(
"package",
"version_current",
Expand Down
8 changes: 0 additions & 8 deletions R/utils_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@
#' @family help
#' @importFrom jsonlite read_json
#' @importFrom tibble as_tibble tibble
#' @importFrom utils browseURL install.packages globalVariables
NULL

utils::globalVariables(
c(
"."
),
package = "multitools"
)
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ To fix the version number of an R-multiverse package that you maintain, create a
# Citation

```{r, eval = FALSE, warning = FALSE, comment = ""}
o cite package ‘multitools’ in publications use:
To cite package ‘multitools’ in publications use:
Landau WM, Gao C, Revilla Sancho L (2024). _multitools: Tools for Contributing Packages to R-multiverse_. R package version 0.1.0,
https://github.com/r-multiverse/multitools,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ column in the output of `check_versions()`.
# Citation

``` r
o cite packagemultitoolsin publications use:
To cite packagemultitoolsin publications use:

Landau WM, Gao C, Revilla Sancho L (2024). _multitools: Tools for Contributing Packages to R-multiverse_. R package version 0.1.0,
https://github.com/r-multiverse/multitools,
Expand Down

0 comments on commit c73b933

Please sign in to comment.