OILS / deps / source.medo / RUnit / WEDGE View on Github | oils.pub

33 lines, 25 significant
1# Small / fast R package
2#
3# Loaded by deps/wedge.sh.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9# sourced
10WEDGE_NAME='RUnit'
11WEDGE_VERSION='2023-03-01'
12
13# R hits the network
14WEDGE_LEAKY_BUILD=1
15
16wedge-make() {
17 echo 'No make step'
18}
19
20wedge-install() {
21 local build_dir=$1
22 local install_dir=$2
23
24 INSTALL_DEST=$install_dir Rscript -e \
25 'install.packages(c("RUnit"), lib=Sys.getenv("INSTALL_DEST"), repos="https://cloud.r-project.org")'
26}
27
28wedge-smoke-test() {
29 local install_dir=$1
30
31 R_LIBS_USER=$install_dir Rscript -e \
32 'library("RUnit"); print("OK")'
33}