Skip to content

Commit 3b48dd9

Browse files
try iconv directly on the 'Check' step
1 parent b465638 commit 3b48dd9

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,6 @@ jobs:
100100
with:
101101
r-version: ${{ matrix.r }}
102102

103-
- name: Override R for locale-specific check
104-
if: matrix.os == 'ubuntu-latest' && !contains(matrix.locale, 'utf8')
105-
run: |
106-
sudo mkdir -p /override
107-
sudo tee /override/R << 'EOF'
108-
#!/bin/bash
109-
set -o pipefail
110-
exec $(which R) "$@" 2>&1 | iconv -c -t UTF-8
111-
EOF
112-
sudo chmod +x /override/R
113-
echo "PATH=/override:$PATH" >> $GITHUB_ENV
114-
115103
- name: Set script permissions
116104
run: chmod +x configure cleanup 2>/dev/null || true # Silence some GHA Annotations
117105
shell: bash
@@ -202,7 +190,7 @@ jobs:
202190
stop("R CMD check failed")
203191
}
204192
}
205-
shell: Rscript {0}
193+
shell: bash -c 'set -o pipefail; Rscript {0} 2>&1 | iconv -c -t UTF-8'
206194

207195
- name: Upload check results
208196
if: failure()

0 commit comments

Comments
 (0)