| 1 | # Small / fast R package
|
| 2 | #
|
| 3 | # Loaded by deps/wedge.sh.
|
| 4 |
|
| 5 | set -o nounset
|
| 6 | set -o pipefail
|
| 7 | set -o errexit
|
| 8 |
|
| 9 | # sourced
|
| 10 | WEDGE_NAME='RUnit'
|
| 11 | WEDGE_VERSION='2023-03-01'
|
| 12 |
|
| 13 | # R hits the network
|
| 14 | WEDGE_LEAKY_BUILD=1
|
| 15 |
|
| 16 | wedge-make() {
|
| 17 | echo 'No make step'
|
| 18 | }
|
| 19 |
|
| 20 | wedge-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 |
|
| 28 | wedge-smoke-test() {
|
| 29 | local install_dir=$1
|
| 30 |
|
| 31 | R_LIBS_USER=$install_dir Rscript -e \
|
| 32 | 'library("RUnit"); print("OK")'
|
| 33 | }
|