Skip to content

Commit

Permalink
Merged origin/main into meztez-main
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Dec 17, 2024
2 parents a5cf318 + e8f66ba commit 27215c7
Show file tree
Hide file tree
Showing 259 changed files with 377,063 additions and 802 deletions.
95 changes: 81 additions & 14 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ on:
- 'yes'
- 'no'
default: 'yes'
bsd:
description: '*BSD'
required: true
type: choice
options:
- 'yes'
- 'no'
default: 'yes'
deploy:
description: 'Deploy'
required: true
Expand Down Expand Up @@ -76,16 +84,17 @@ jobs:
echo "linux: ${{ github.event.inputs.linux == 'yes' }}"
echo "macos-arm64: ${{ github.event.inputs.macos-arm64 == 'yes' }}"
echo "linux-arm64: ${{ github.event.inputs.linux-arm64 == 'yes' }}"
echo "bsd: ${{ github.event.inputs.bsd == 'yes' }}"
echo "deploy: ${{ github.event.inputs.deploy == 'yes' }}"
# -----------------------------------------------------------------------
macos:
runs-on: macos-12
runs-on: macos-latest
if: ${{ github.event.inputs.macos == '' || github.event.inputs.macos == 'yes' }}
name: macOS x86_64
env:
# RVERSIONS: "3.5 3.6 4.0 4.1 4.2 4.3-x86_64 4.4-x86_64 4.5-x86_64"
RVERSION_DEFAULT: "4.3-x86_64"
RVERSIONS: "3.5 3.6 4.0 4.1 4.2 4.3-x86_64 4.4-x86_64 4.5-x86_64"
RVERSION_DEFAULT: "4.4-x86_64"
steps:

- name: Checkout
Expand All @@ -100,14 +109,14 @@ jobs:
- name: Install R
run: |
sudo rig add 3.5
sudo rig add 3.6
sudo rig add 4.0
sudo rig add 4.1
sudo rig add 4.2
sudo rig add 4.3
sudo rig add release
sudo rig add devel
sudo rig add 3.5 --arch x86_64
sudo rig add 3.6 --arch x86_64
sudo rig add 4.0 --arch x86_64
sudo rig add 4.1 --arch x86_64
sudo rig add 4.2 --arch x86_64
sudo rig add 4.3 --arch x86_64
sudo rig add release --arch x86_64
sudo rig add devel --arch x86_64
rig default release
- name: Install skopeo
Expand All @@ -130,12 +139,12 @@ jobs:
# -----------------------------------------------------------------------

macos-arm64:
runs-on: macos-12
runs-on: macos-latest
if: ${{ github.event.inputs.macos-arm64 == '' || github.event.inputs.macos-arm64 == 'yes' }}
name: macos arm64
env:
RVERSIONS: "4.1-arm64 4.2-arm64 4.3-arm64 4.5-arm64"
RVERSION_DEFAULT: "4.3-x86_64"
RVERSIONS: "4.1-arm64 4.2-arm64 4.3-arm64 4.4-arm64 4.5-arm64"
RVERSION_DEFAULT: "4.4-arm64"

steps:

Expand Down Expand Up @@ -319,6 +328,64 @@ jobs:

# ------------------------------------------------------------------------

bsd:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.bsd == '' || github.event.inputs.bsd == 'yes' }}
name: BSD

strategy:
fail-fast: false
matrix:
config:
- { os: 'freebsd', release: '15.0' }
- { os: 'freebsd', release: '14.2-pre' }
- { os: 'freebsd', release: '14.1' }
- { os: 'freebsd', release: '13.4' }
- { os: 'openbsd', release: '7.6' }
- { os: 'openbsd', release: '7.5' }
- { os: 'openbsd', release: '7.4' }
- { os: 'netbsd' }
- { os: 'dragonflybsd' }

steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- uses: r-hub/actions/setup-r-freebsd@main
if: ${{ matrix.config.os == 'freebsd' }}
with:
release: ${{ matrix.config.release }}

- uses: r-hub/actions/setup-r-openbsd@v1
if: ${{ matrix.config.os == 'openbsd' }}
with:
release: ${{ matrix.config.release }}

- uses: r-hub/actions/setup-r-netbsd@v1
if: ${{ matrix.config.os == 'netbsd' }}

- uses: r-hub/actions/setup-r-dragonflybsd@v1
if: ${{ matrix.config.os == 'dragonflybsd' }}

- name: Build pak binary
run: |
# this runs on the VM
install.packages(".", repos = NULL, type = "source", INSTALL_opts = "--build")
shell: Rscript {0}

- name: Deploy pak binary
run: |
make -f tools/build/docker-deploy/Makefile
env:
PAK_GHCR_TOKEN: ${{ secrets.PAK_GHCR_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
shell: bash

# ------------------------------------------------------------------------

deploy:
runs-on: ubuntu-latest
if: ${{ (github.event.inputs.deploy == '' || github.event.inputs.deploy == 'yes') && always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown
extra-packages: r-lib/pkgdown
needs: website
pak-version: devel

Expand Down
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Suggests:
gitcreds,
glue (>= 1.6.2),
jsonlite (>= 1.8.0),
mockery,
pingr,
pkgbuild (>= 1.4.2),
pkgcache (>= 2.0.4),
Expand All @@ -62,11 +61,11 @@ Config/build/extra-sources: configure*
Config/needs/dependencies:
callr,
desc,
cli,
r-lib/cli,
curl,
filelock,
jsonlite,
gaborcsardi/lpSolve,
lpSolve,
pkgbuild,
r-lib/pkgcache,
r-lib/pkgdepends,
Expand Down
49 changes: 48 additions & 1 deletion R/push-packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ push_packages <- local({

canonize_arch <- function(platform) {
arch <- strsplit(platform, "-", fixed = TRUE)[[1]][1]
c("aarch64" = "arm64", "x86_64" = "amd64")[[arch]]
c("aarch64" = "arm64", "x86_64" = "amd64", "arm64" = "arm64", "amd64" = "amd64")[[arch]]
}

canonize_os <- function(platform) {
Expand Down Expand Up @@ -641,6 +641,14 @@ create_pak_repo <- local({
# - darwin17.0/x86_64
# - darwin20/aarch64
# - mingw32/x86_64
# - freebsd15.0/x86_64
# - freebsd14.1/x86_64
# - freebsd13.3/x86_64
# - openbsd7.6/x86_64
# - openbsd7.5/x86_64
# - openbsd7.4/x86_64
# - netbsd/x86_64
# - dragonfly6.4/x86_64

# ## New form of the install command will use these repo URL and paths:
# ```
Expand All @@ -658,6 +666,22 @@ create_pak_repo <- local({
# mingw32/x86_64
# win.binary/mingw32/i386 + /bin/windows/contrib/4.1 ->
# mingw32/x86_64
# source/freebsd15.0/amd64 + /src/contrib ->
# freebsd15.0/x86_64
# source/freebsd14.1/amd64 + /src/contrib ->
# freebsd14.1/x86_64
# source/freebsd13.3/amd64 + /src/contrib ->
# freebsd13.3/x86_64
# source/openbsd7.6/x86_64 + /src/contrib ->
# openbsd7.6/x86_64
# source/openbsd7.5/x86_64 + /src/contrib ->
# openbsd7.5/x86_64
# source/openbsd7.4/x86_64 + /src/contrib ->
# openbsd7.4/x86_64
# source/netbsd/x86_64 + /src/contrib ->
# netbsd/x86_64
# source/dragonfly6.4/x86_64 + /src/contrib ->
# dragonfly6.4/x86_64
# ```
#
# Unsupported platforms will get a non-existant path, e.g. homebrew R
Expand Down Expand Up @@ -706,6 +730,29 @@ create_pak_repo <- local({
"source/linux-dietlibc/aarch64/src/contrib" = "../../../../../linux/aarch64",
"source/linux-unknown/aarch64/src/contrib" = "../../../../../linux/aarch64",

"source/freebsd15.6/amd64/src/contrib" = "../../../../../freebsd15.6/x86_64",
"source/freebsd15.5/amd64/src/contrib" = "../../../../../freebsd15.5/x86_64",
"source/freebsd15.4/amd64/src/contrib" = "../../../../../freebsd15.4/x86_64",
"source/freebsd15.3/amd64/src/contrib" = "../../../../../freebsd15.3/x86_64",
"source/freebsd15.2/amd64/src/contrib" = "../../../../../freebsd15.2/x86_64",
"source/freebsd15.1/amd64/src/contrib" = "../../../../../freebsd15.1/x86_64",
"source/freebsd15.0/amd64/src/contrib" = "../../../../../freebsd15.0/x86_64",
"source/freebsd14.6/amd64/src/contrib" = "../../../../../freebsd14.6/x86_64",
"source/freebsd14.5/amd64/src/contrib" = "../../../../../freebsd14.5/x86_64",
"source/freebsd14.4/amd64/src/contrib" = "../../../../../freebsd14.4/x86_64",
"source/freebsd14.3/amd64/src/contrib" = "../../../../../freebsd14.3/x86_64",
"source/freebsd14.2/amd64/src/contrib" = "../../../../../freebsd14.2/x86_64",
"source/freebsd14.1/amd64/src/contrib" = "../../../../../freebsd14.1/x86_64",
"source/freebsd13.6/amd64/src/contrib" = "../../../../../freebsd13.6/x86_64",
"source/freebsd13.5/amd64/src/contrib" = "../../../../../freebsd13.5/x86_64",
"source/freebsd13.4/amd64/src/contrib" = "../../../../../freebsd13.4/x86_64",
"source/freebsd13.3/amd64/src/contrib" = "../../../../../freebsd13.3/x86_64",
"source/openbsd7.6/x86_64/src/contrib" = "../../../../../openbsd7.6/x86_64",
"source/openbsd7.5/x86_64/src/contrib" = "../../../../../openbsd7.5/x86_64",
"source/openbsd7.4/x86_64/src/contrib" = "../../../../../openbsd7.4/x86_64",
"source/netbsd/x86_64/src/contrib" = "../../../../../netbsd/x86_64",
"source/dragonfly6.4/x86_64/src/contrib" = "../../../../../dragonfly6.4/x86_64",

# Map the pkgType/os/arch form binaries of other OSes to the right place.
"win.binary/mingw32/x86_64/src/contrib" = "../../../../../mingw32/x86_64",
"mac.binary.big-sur-arm64/darwin20/aarch64/src/contrib" = "../../../../../darwin20/aarch64",
Expand Down
18 changes: 11 additions & 7 deletions man/chunks/install.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ install.packages("pak", repos = sprintf(

This is supported for the following systems:

| OS | CPU | R version |
|---------------------|-----------|-------------------|
| Linux | x86_64 | R 3.4.0 - R-devel |
| Linux | aarch64 | R 3.4.0 - R-devel |
| macOS High Sierra+ | x86_64 | R 3.4.0 - R-devel |
| macOS Big Sur+ | aarch64 | R 4.1.0 - R-devel |
| Windows | x86_64 | R 3.4.0 - R-devel |
| OS | CPU | R version |
|-----------------------|-----------|-----------------------------------|
| Linux | x86_64 | R 3.4.0 - R-devel |
| Linux | aarch64 | R 3.4.0 - R-devel |
| macOS High Sierra+ | x86_64 | R 3.4.0 - R-devel |
| macOS Big Sur+ | aarch64 | R 4.1.0 - R-devel |
| Windows | x86_64 | R 3.4.0 - R-devel |
| FreeBSD 13.x or later | x86_64 | R 4.4.x |
| OpenBSD 7.4, 7.5, 7.6 | x86_64 | R 4.2.x (7.4, 7.5), R 4.4.x (7.6) |
| NetBSD 10.0 | x86_64 | R 4.4.x |
| DragonFly BSD 6.4 | x86_64 | R 4.3.x |

### Notes

Expand Down
2 changes: 1 addition & 1 deletion man/chunks/sysreqs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ about.
pak::sysreqs_db_list()
```

`sysreqs_db_match()` manually matches `SystemREquirements` fields
`sysreqs_db_match()` manually matches `SystemRequirements` fields
againts these system requirements:
```{asciicast db-match}
sq <- pak::sysreqs_db_match("Needs libcurl and also Java.")
Expand Down
2 changes: 1 addition & 1 deletion man/chunks/sysreqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ pak::sysreqs_db_list()

</div>

`sysreqs_db_match()` manually matches `SystemREquirements` fields
`sysreqs_db_match()` manually matches `SystemRequirements` fields
againts these system requirements:

``` r
Expand Down
4 changes: 4 additions & 0 deletions man/install.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/sysreqs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions src/library/cli/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cli
Title: Helpers for Developing Command Line Interfaces
Version: 3.6.2
Version: 3.6.3.9000
Authors@R: c(
person("Gábor", "Csárdi", , "[email protected]", role = c("aut", "cre")),
person("Hadley", "Wickham", role = "ctb"),
Expand All @@ -21,22 +21,20 @@ BugReports: https://github.com/r-lib/cli/issues
Depends: R (>= 3.4)
Imports: utils
Suggests: callr, covr, crayon, digest, glue (>= 1.6.0), grDevices,
htmltools, htmlwidgets, knitr, methods, mockery, processx, ps
(>= 1.3.4.9000), rlang (>= 1.0.2.9003), rmarkdown, rprojroot,
rstudioapi, testthat, tibble, whoami, withr
htmltools, htmlwidgets, knitr, methods, processx, ps (>=
1.3.4.9000), rlang (>= 1.0.2.9003), rmarkdown, rprojroot,
rstudioapi, testthat (>= 3.2.0), tibble, whoami, withr
Config/Needs/website: r-lib/asciicast, bench, brio, cpp11, decor, desc,
fansi, prettyunits, sessioninfo, tidyverse/tidytemplate,
usethis, vctrs
Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
NeedsCompilation: yes
Packaged: 2023-12-10 22:38:10 UTC; gaborcsardi
Packaged: 2024-11-08 08:17:43 UTC; gaborcsardi
Author: Gábor Csárdi [aut, cre],
Hadley Wickham [ctb],
Kirill Müller [ctb],
Salim Brüggemann [ctb] (<https://orcid.org/0000-0002-5329-5987>),
Posit Software, PBC [cph, fnd]
Maintainer: Gábor Csárdi <[email protected]>
Repository: CRAN
Date/Publication: 2023-12-11 07:40:13 UTC
8 changes: 8 additions & 0 deletions src/library/cli/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,27 @@ export(hash_emoji)
export(hash_file_md5)
export(hash_file_sha1)
export(hash_file_sha256)
export(hash_file_xxhash)
export(hash_file_xxhash64)
export(hash_md5)
export(hash_obj_animal)
export(hash_obj_emoji)
export(hash_obj_md5)
export(hash_obj_sha1)
export(hash_obj_sha256)
export(hash_obj_xxhash)
export(hash_obj_xxhash64)
export(hash_raw_animal)
export(hash_raw_emoji)
export(hash_raw_md5)
export(hash_raw_sha1)
export(hash_raw_sha256)
export(hash_raw_xxhash)
export(hash_raw_xxhash64)
export(hash_sha1)
export(hash_sha256)
export(hash_xxhash)
export(hash_xxhash64)
export(is_ansi_tty)
export(is_dynamic_tty)
export(is_utf8_output)
Expand Down
Loading

0 comments on commit 27215c7

Please sign in to comment.