knitr::opts_chunk$set(echo = TRUE)

Installation of WhiteboxTools Binary

We want to have WhiteboxTools installed during the Github Actions Workflow.

Problem

Originally we used "whitebox::install_whitebox() within the install_spatial.sh file. As mentioned in this whiteboxR issue, it happens from time to time, that the download of the WhiteboxTools zip file from https://www.whiteboxgeo.com fails.

Current Solution

We integrated the WhiteboxTools zip file into our mdsrocker repository ("inst/extdata/WhiteboxTools_linux_amd64.zip") manually.

During the Github Actions Workflow run, we simply use this and extract it to the defined path.

Docker images

Let's have a look at the most recently built docker images.

First download the docker images from dockerhub. ```{bash docker_pull}

tags=("4.1.2" "4.1.3" "4.2.0")

pull docker images

for t in "${tags[@]}" do img="meterds/r-aws-spatial:$t" # echo $img docker pull $img -q done

list of docker images

docker image ls

And then check if the *whitebox binary* can be found.
```{bash docker_run“}
tags=("4.1.2" "4.1.3" "4.2.0")

# walk through images and check whether whiteboxtools is installed
for t in "${tags[@]}"
do
    img="meterds/r-aws-spatial:$t"
    echo $img
    docker run --rm $img Rscript -e "whitebox::check_whitebox_binary()"
done


meterds/mdsrocker documentation built on Dec. 2, 2023, 11:56 p.m.