knitr::opts_chunk$set(echo = TRUE)
We want to have WhiteboxTools installed during the Github Actions Workflow.
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.
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.
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")
for t in "${tags[@]}" do img="meterds/r-aws-spatial:$t" # echo $img docker pull $img -q done
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.