Skip to content

Commit 6269317

Browse files
authored
apacheGH-41145: [R][CI] test-r-dev-duckdb fails installing duckdb (apache#41152)
### Rationale for this change An error is received installing R duckdb: ``` #15 18.13 > remotes::install_github('duckdb/duckdb-r', build = FALSE) #15 18.27 Error: Failed to install 'unknown package' from **GitHub:** #15 18.27 Line starting 'Roxyg ...' is malformed! ``` Some searching seems to suggest that this is because R cannot process UTF-8 characters in DESCRIPTION files if the `LANG` is set to `C`. ### What changes are included in this PR? The `LANG` is set to `C.UTF-8` in the dockerfile for this CI job ### Are these changes tested? The change only affects a test ### Are there any user-facing changes? No * GitHub Issue: apache#41145 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent effd5af commit 6269317

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/docker/linux-apt-r.dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ ENV R_PRUNE_DEPS=${r_prune_deps}
2727
ARG r_duckdb_dev=FALSE
2828
ENV R_DUCKDB_DEV=${r_duckdb_dev}
2929

30+
# This is needed to avoid errors with utf8 characters in some
31+
# R package's DESCRIPTION files
32+
# https://github.com/statnmap/HatchedPolygons/issues/4
33+
ENV LANG=C.UTF-8
34+
3035
# Build R
3136
# [1] https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
3237
# [2] https://linuxize.com/post/how-to-install-r-on-ubuntu-18-04/#installing-r-packages-from-cran

0 commit comments

Comments
 (0)