I currently write a code for automatic reading sentinel 2 data (JPEG2000 format), clipping it and save it a .tif. I use the language R and my system is Windows 10.
My problem is to install properly a gdal driver for JPEG2000. I tried to install the OpenJpeg library, but the installation is very poorly documented.
Can someone explain how to install the OpenJpeg library to use in R or has another suggestion how to read the JPEG2000 in R ?