Skip to content

Commit 9f102b7

Browse files
Merge branch 'devel'
2 parents 119f622 + 6b57b2f commit 9f102b7

File tree

290 files changed

+374242
-41993
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+374242
-41993
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
^pkgdown$
1212
^cran-comments\.md$
1313
^CRAN-SUBMISSION$
14+
^doc$
15+
^Meta$

.github/workflows/check-standard.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
config:
2121
- {os: macos-latest, r: 'release'}
2222
- {os: windows-latest, r: 'release'}
23-
- {os: windows-latest, r: '3.6'}
2423
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2524
- {os: ubuntu-latest, r: 'release'}
2625
- {os: ubuntu-latest, r: 'oldrel-1'}
27-
- {os: ubuntu-latest, r: 'oldrel-2'}
28-
- {os: ubuntu-latest, r: 'oldrel-3'}
26+
- {os: ubuntu-latest, r: '4.1'}
2927

3028
env:
3129
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rhub.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# R-hub's generic GitHub Actions workflow file. It's canonical location is at
2+
# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml
3+
# You can update this file to a newer version using the rhub2 package:
4+
#
5+
# rhub::rhub_setup()
6+
#
7+
# It is unlikely that you need to modify this file manually.
8+
9+
name: R-hub
10+
run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}"
11+
12+
on:
13+
workflow_dispatch:
14+
inputs:
15+
config:
16+
description: 'A comma separated list of R-hub platforms to use.'
17+
type: string
18+
default: 'linux,windows,macos'
19+
name:
20+
description: 'Run name. You can leave this empty now.'
21+
type: string
22+
id:
23+
description: 'Unique ID. You can leave this empty now.'
24+
type: string
25+
26+
jobs:
27+
28+
setup:
29+
runs-on: ubuntu-latest
30+
outputs:
31+
containers: ${{ steps.rhub-setup.outputs.containers }}
32+
platforms: ${{ steps.rhub-setup.outputs.platforms }}
33+
34+
steps:
35+
# NO NEED TO CHECKOUT HERE
36+
- uses: r-hub/actions/setup@v1
37+
with:
38+
config: ${{ github.event.inputs.config }}
39+
id: rhub-setup
40+
41+
linux-containers:
42+
needs: setup
43+
if: ${{ needs.setup.outputs.containers != '[]' }}
44+
runs-on: ubuntu-latest
45+
name: ${{ matrix.config.label }}
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
config: ${{ fromJson(needs.setup.outputs.containers) }}
50+
container:
51+
image: ${{ matrix.config.container }}
52+
53+
steps:
54+
- uses: r-hub/actions/checkout@v1
55+
- uses: r-hub/actions/platform-info@v1
56+
with:
57+
token: ${{ secrets.RHUB_TOKEN }}
58+
job-config: ${{ matrix.config.job-config }}
59+
- uses: r-hub/actions/setup-deps@v1
60+
with:
61+
token: ${{ secrets.RHUB_TOKEN }}
62+
job-config: ${{ matrix.config.job-config }}
63+
- uses: r-hub/actions/run-check@v1
64+
with:
65+
token: ${{ secrets.RHUB_TOKEN }}
66+
job-config: ${{ matrix.config.job-config }}
67+
68+
other-platforms:
69+
needs: setup
70+
if: ${{ needs.setup.outputs.platforms != '[]' }}
71+
runs-on: ${{ matrix.config.os }}
72+
name: ${{ matrix.config.label }}
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
config: ${{ fromJson(needs.setup.outputs.platforms) }}
77+
78+
steps:
79+
- uses: r-hub/actions/checkout@v1
80+
- uses: r-hub/actions/setup-r@v1
81+
with:
82+
job-config: ${{ matrix.config.job-config }}
83+
token: ${{ secrets.RHUB_TOKEN }}
84+
- uses: r-hub/actions/platform-info@v1
85+
with:
86+
token: ${{ secrets.RHUB_TOKEN }}
87+
job-config: ${{ matrix.config.job-config }}
88+
- uses: r-hub/actions/setup-deps@v1
89+
with:
90+
job-config: ${{ matrix.config.job-config }}
91+
token: ${{ secrets.RHUB_TOKEN }}
92+
- uses: r-hub/actions/run-check@v1
93+
with:
94+
job-config: ${{ matrix.config.job-config }}
95+
token: ${{ secrets.RHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ vignettes/*.pdf
4141
*.Rproj
4242
.Rproj.user
4343
docs
44+
inst/doc
45+
/doc/
46+
/Meta/

CRAN-SUBMISSION

Lines changed: 0 additions & 3 deletions
This file was deleted.

DESCRIPTION

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: woodendesc
22
Type: Package
33
Title: Find Packages and Their Dependencies in Any 'R' Repository
4-
Version: 0.1.0
5-
Date: 2023-04-17
4+
Version: 0.2.0
5+
Date: 2025-01-26
66
Authors@R: c(person("Laura", "Bakala",
77
email = "erdaradun.gaztea@gmail.com",
88
role = c("cre", "aut", "cph"),
@@ -15,21 +15,24 @@ Description: Simplifies getting the available packages, their version codes and
1515
License: GPL (>= 3)
1616
Encoding: UTF-8
1717
Roxygen: list(markdown = TRUE)
18-
RoxygenNote: 7.2.3
18+
RoxygenNote: 7.3.2
1919
Depends:
20-
R (>= 3.5.0)
20+
R (>= 4.1.0)
2121
Imports:
22-
digest,
23-
httr,
22+
httr2 (>= 1.0.0),
23+
rlang (>= 1.0.0),
24+
utils,
2425
versionsort (>= 1.1.0)
2526
Suggests:
2627
covr,
27-
httptest,
28+
httptest2,
29+
knitr,
30+
rmarkdown,
2831
testthat (>= 3.0.0),
2932
usethis,
30-
vcr,
3133
withr,
3234
xml2
3335
Config/testthat/edition: 3
3436
URL: https://github.com/turtletopia/woodendesc,
3537
https://turtletopia.github.io/woodendesc/
38+
VignetteBuilder: knitr

NAMESPACE

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export(wood_github_latest)
3232
export(wood_github_packages)
3333
export(wood_github_tags)
3434
export(wood_github_versions)
35+
export(wood_gitlab_dependencies)
36+
export(wood_gitlab_latest)
37+
export(wood_gitlab_packages)
38+
export(wood_gitlab_tags)
39+
export(wood_gitlab_versions)
3540
export(wood_local_dependencies)
3641
export(wood_local_packages)
3742
export(wood_local_versions)
@@ -43,15 +48,3 @@ export(wood_url_dependencies)
4348
export(wood_url_packages)
4449
export(wood_url_version)
4550
export(wood_versions)
46-
importFrom(digest,digest)
47-
importFrom(httr,GET)
48-
importFrom(httr,content)
49-
importFrom(httr,status_code)
50-
importFrom(httr,stop_for_status)
51-
importFrom(stats,setNames)
52-
importFrom(utils,URLencode)
53-
importFrom(utils,install.packages)
54-
importFrom(utils,installed.packages)
55-
importFrom(utils,menu)
56-
importFrom(versionsort,ver_latest)
57-
importFrom(versionsort,ver_sort)

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# woodendesc 0.2.0
2+
3+
* Reimplemented the code, replacing {httr} with {httr2}.
4+
* Updated code to reflect API changes in Bioconductor and R-universe.
5+
* Added support for GitLab.
6+
* Bioconductor data for releases 1.5-1.7 is no longer available.
7+
* Dropped support for older R versions (< 4.1.0) because they increased maintenance complexity significantly.
8+
19
# woodendesc 0.1.0
210

311
* Added a `NEWS.md` file to track changes to the package.

R/assert-parameters.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ assert_param_url_repo <- function(value) {
5151
assert_no_NA(value, "repository")
5252
}
5353

54-
assert_param_gh_user <- function(value) {
54+
assert_param_git_user <- function(value) {
5555
assert_string(value, "user")
5656
assert_length_1(value, "user")
5757
assert_no_NA(value, "user")

R/bioc-dependencies.R

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,26 @@
1111
#' * `version` (minimum version requirement or `NA` if none),
1212
#' * `type` (dependency type, e.g. `"Imports"`).
1313
#'
14-
#' @examples
15-
#' \donttest{
14+
#' @examplesIf !woodendesc:::is_cran_check()
1615
#' wood_bioc_dependencies("Biostrings")
1716
#'
1817
#' # Will dependencies change?
1918
#' wood_bioc_dependencies("Biostrings", "devel")
2019
#' # And what about dependencies in the past?
2120
#' wood_bioc_dependencies("Biostrings", "2.10")
22-
#' wood_bioc_dependencies("Biostrings", "1.5")
23-
#' }
21+
#' wood_bioc_dependencies("Biostrings", "1.8")
2422
#'
2523
#' @family bioc
2624
#' @family dependencies
2725
#' @export
2826
wood_bioc_dependencies <- function(package, release = "release") {
2927
assert_param_package(package)
3028
assert_param_bioc_release(release)
29+
validate_bioc_release(release)
3130

3231
desc <- bioc_PACKAGES_cache(release)[[package]]
3332

34-
# TODO: extract as validate_bioc_package()
35-
if (is.null(desc)) {
36-
stopf(
37-
"Can't find package `%1$s` in Bioconductor release `%2$s`.",
38-
package, release
39-
)
40-
}
33+
validate_bioc_package(desc, package, release)
4134

4235
extract_dependencies(desc)
4336
}

0 commit comments

Comments
 (0)