add reprex snippets

This commit is contained in:
Patrick Schratz 2024-09-17 09:26:48 +02:00
commit e393b19577
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 10 additions and 0 deletions

5
docker/reprex/alpine.sh Normal file
View file

@ -0,0 +1,5 @@
docker run --rm -it --platform linux/arm64 alpine sh
apk add --no-cache R R-dev g++
install.packages('<pkg>', repos = "cloud.r-project.org")

View file

@ -0,0 +1,5 @@
docker run --rm -it --platform linux/arm64 ubuntu:noble bash
export DEBIAN_FRONTEND=noninteractive
apt update && apt install -y r-base-core
R -q -e 'install.packages("<pkg>"