Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit c73b933

Browse files
authored
Merge pull request #11 from shikokuchuo/main
Aligns with R-Multiverse infrastructure
2 parents 2e46e6c + 6ed1ee0 commit c73b933

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed

DESCRIPTION

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Tools for Contributing Packages to R-multiverse
33
Description: 'R-multiverse' is a community-curated collection of
44
R package releases, powered by 'R-universe'. The 'multitools' package
55
has tools for maintainers of packages in 'R-multiverse'.
6-
Version: 0.1.0
6+
Version: 0.1.1
77
License: MIT + file LICENSE
88
URL:
99
https://r-multiverse.org/multitools/,
@@ -41,8 +41,7 @@ Depends:
4141
R (>= 4.0.0)
4242
Imports:
4343
jsonlite,
44-
tibble,
45-
utils
44+
tibble
4645
Suggests:
4746
curl,
4847
knitr (>= 1.30),

NAMESPACE

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ export(check_versions)
44
importFrom(jsonlite,read_json)
55
importFrom(tibble,as_tibble)
66
importFrom(tibble,tibble)
7-
importFrom(utils,browseURL)
8-
importFrom(utils,globalVariables)
9-
importFrom(utils,install.packages)

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# multitools 0.5.0
1+
# multitools 0.1.1
2+
3+
* Aligns with R-Multiverse infrastructure.
4+
5+
# multitools 0.1.0
26

37
* Rename package.
48

R/check_versions.R

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,29 @@ check_versions <- function() {
2626
manifest <- file.path(
2727
"https://raw.githubusercontent.com",
2828
"r-multiverse",
29-
"r-multiverse.r-universe.dev",
29+
"checks",
3030
"main",
31-
"version_issues.json"
31+
"versions.json"
3232
)
3333
out <- jsonlite::read_json(
3434
path = manifest,
3535
simplifyVector = TRUE,
3636
simplifyDataFrame = TRUE
3737
)
38-
out <- tibble::as_tibble(out)
3938
if (nrow(out) < 1L) {
40-
out <- tibble::tibble(
41-
package = character(0L),
42-
version_current = character(0L),
43-
version_highest = character(0L),
44-
hash_current = character(0L),
45-
hash_highest = character(0L)
39+
return(
40+
tibble::tibble(
41+
package = character(0L),
42+
version_current = character(0L),
43+
version_highest = character(0L),
44+
hash_current = character(0L),
45+
hash_highest = character(0L)
46+
)
4647
)
4748
}
49+
out <- out[out[["version_current"]] != out[["version_highest"]] |
50+
out[["hash_current"]] != out[["hash_highest"]], ]
51+
out <- tibble::as_tibble(out)
4852
order <- c(
4953
"package",
5054
"version_current",

R/utils_package.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,4 @@
66
#' @family help
77
#' @importFrom jsonlite read_json
88
#' @importFrom tibble as_tibble tibble
9-
#' @importFrom utils browseURL install.packages globalVariables
109
NULL
11-
12-
utils::globalVariables(
13-
c(
14-
"."
15-
),
16-
package = "multitools"
17-
)

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ To fix the version number of an R-multiverse package that you maintain, create a
7373
# Citation
7474

7575
```{r, eval = FALSE, warning = FALSE, comment = ""}
76-
o cite package ‘multitools’ in publications use:
76+
To cite package ‘multitools’ in publications use:
7777
7878
Landau WM, Gao C, Revilla Sancho L (2024). _multitools: Tools for Contributing Packages to R-multiverse_. R package version 0.1.0,
7979
https://github.com/r-multiverse/multitools,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ column in the output of `check_versions()`.
7878
# Citation
7979

8080
``` r
81-
o cite packagemultitoolsin publications use:
81+
To cite packagemultitoolsin publications use:
8282

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

0 commit comments

Comments
 (0)