Skip to content

Commit 2b171db

Browse files
committed
feat!(r-apt): remove arm64 blocker for debian and ubuntu
1 parent a9941fc commit 2b171db

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/r-apt/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "R (via apt)",
33
"id": "r-apt",
4-
"version": "0.4.2",
4+
"version": "0.5.0",
55
"description": "Installs the latest R, some R packages, and needed dependencies. Note: May require source code compilation for some R packages.",
66
"documentationURL": "https://github.com/rocker-org/devcontainer-features/tree/main/src/r-apt",
77
"options": {

src/r-apt/install.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ if [ "${architecture}" != "amd64" ] && [ "${architecture}" != "arm64" ]; then
3838
exit 1
3939
fi
4040

41-
# Only debian testing supports arm64
42-
# shellcheck source=/dev/null
43-
source /etc/os-release
44-
if [ "${ID}" = "ubuntu" ] && [ "${architecture}" != "amd64" ]; then
45-
echo "(!) Ubuntu $architecture unsupported"
46-
exit 1
47-
fi
48-
if [ "${ID}" = "debian" ] && [ "${architecture}" != "amd64" ] && [ "${USE_TESTING}" != "true" ]; then
49-
echo "(!) To use Debian $architecture, please set useTesting option to true"
50-
exit 1
51-
fi
52-
5341
# Determine the appropriate non-root user
5442
if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
5543
USERNAME=""
@@ -145,12 +133,9 @@ usermod -a -G staff "${USERNAME}"
145133
check_packages curl ca-certificates
146134

147135
if [ "${ID}" = "ubuntu" ]; then
148-
echo "Set up for Ubuntu..."
149-
curl -fsSL https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc >/dev/null
150-
echo "deb [arch=amd64] https://cloud.r-project.org/bin/linux/ubuntu ${UBUNTU_CODENAME}-cran40/" >/etc/apt/sources.list.d/cran-ubuntu.list
151136
echo "Set up r2u..."
152137
curl -fsSL https://eddelbuettel.github.io/r2u/assets/dirk_eddelbuettel_key.asc | tee -a /etc/apt/trusted.gpg.d/cranapt_key.asc >/dev/null
153-
echo "deb [arch=amd64] https://r2u.stat.illinois.edu/ubuntu ${UBUNTU_CODENAME} main" >/etc/apt/sources.list.d/cranapt.list
138+
echo "deb https://r2u.stat.illinois.edu/ubuntu ${UBUNTU_CODENAME} main" >/etc/apt/sources.list.d/cranapt.list
154139
# Pinning
155140
cat <<EOF >"/etc/apt/preferences.d/99cranapt"
156141
Package: *
@@ -167,7 +152,7 @@ elif [ "${ID}" = "debian" ]; then
167152
else
168153
echo "Set up for Debian ${VERSION_CODENAME}..."
169154
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x95c0faf38db3ccad0c080a7bdc78b2ddeabc47b7" | tee -a /etc/apt/trusted.gpg.d/cran_debian_key.asc >/dev/null
170-
echo "deb [arch=amd64] http://cloud.r-project.org/bin/linux/debian ${VERSION_CODENAME}-cran40/" >/etc/apt/sources.list.d/cran-debian.list
155+
echo "deb http://cloud.r-project.org/bin/linux/debian ${VERSION_CODENAME}-cran40/" >/etc/apt/sources.list.d/cran-debian.list
171156
fi
172157
# On Debian, renv, languageserver and httpgd are not available via apt
173158
# shellcheck disable=SC2206

0 commit comments

Comments
 (0)