This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 62693170ae GH-41145: [R][CI] test-r-dev-duckdb fails installing duckdb
(#41152)
62693170ae is described below
commit 62693170aee3bea2dfec272e51bf3bc4d1297a53
Author: Weston Pace <[email protected]>
AuthorDate: Thu Apr 11 08:05:54 2024 -0700
GH-41145: [R][CI] test-r-dev-duckdb fails installing duckdb (#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: #41145
Authored-by: Weston Pace <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
ci/docker/linux-apt-r.dockerfile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ci/docker/linux-apt-r.dockerfile b/ci/docker/linux-apt-r.dockerfile
index c59766c4a6..d93732abb0 100644
--- a/ci/docker/linux-apt-r.dockerfile
+++ b/ci/docker/linux-apt-r.dockerfile
@@ -27,6 +27,11 @@ ENV R_PRUNE_DEPS=${r_prune_deps}
ARG r_duckdb_dev=FALSE
ENV R_DUCKDB_DEV=${r_duckdb_dev}
+# This is needed to avoid errors with utf8 characters in some
+# R package's DESCRIPTION files
+# https://github.com/statnmap/HatchedPolygons/issues/4
+ENV LANG=C.UTF-8
+
# Build R
# [1]
https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
# [2]
https://linuxize.com/post/how-to-install-r-on-ubuntu-18-04/#installing-r-packages-from-cran