A dockerised version of sen2r is available here: it contains a working RStudio environment with the package sen2r and all its dependencies (both R packages and runtime dependencies). It can be used in order to avoid troublings about compiling all the required R packages, or in case of problems with runtime dependencies (tipically GDAL over Windows).
To use it:
install Docker CE version 1.13 or higher;
read the docker documentation in Part 1;
obtain the image of sen2r:
docker pull ranghetti/sen2r:latest
run the docker:
docker run --rm -e PASSWORD=sen2r -e USERID=$(id -u) -v $(pwd):/home/rstudio/host -p 8777:8787 ranghetti/sen2r
-e PASSWORD=sen2ris the password to be used to login;
-v $(pwd):/home/rstudio/hostmeans that the current directory will be mounted in the docker, and its content will be available in the subdirectory
hostof the docker folder tree (to mount a different directory, replace
$(pwd)with the desired directory);
-p 8777:8787means that the dockerised RStudio will be accessible from port 8777 (change it to use a different port).
access to the RStudio environment from http://localhost:8777, logging in with user
rstudio and the password set as above.