title: How to read JPEG2000 of Sentinel-2 data in R
body: <p>I am trying to use the <a href="https://CRAN.R-project.org/package=rgdal" rel="nofollow noreferrer"><code>rgdal</code></a> package to open multiple Sentinel-2 data of JPEG2000 format.</p>
  
  <p>The issue I am running into is: </p>
  
  <pre><code>Error in .local(.Object, ...) : 
  d:/data/T35SMD_20161227T091402_B01.jp2' not recognised as a supported file format.
  </code></pre>
  
  <p>Although, I have updated my installation of the <code>rgdal</code> package and use updated gdal binaries that support JPEG2000, which had support <a href="http://www.gdal.org/frmt_jpeg2000.html" rel="nofollow noreferrer">introduced in v1.9.0</a>.</p>
  
  <pre><code>rgdal: version: 1.2-5, (SVN revision 648)
  Loaded GDAL runtime: GDAL 2.0.1, released 2015/09/15
  </code></pre>
  
  <p>When I perform <code>gdalDrivers()</code> command, the entry for <code>JPG2000</code> is not listed there among other drivers.</p>
  
  <p>Can anyone please tell me how could I solve this problem? I have plenty of S-2 data and converting them to tiff in QGIS or any similar program is no option for me.</p>
  
  <p>I have also found few similar questions on this theme (c.f. <a href="https://gis.stackexchange.com/questions/211157/open-jpeg2000-sentinel-2-in-r">open jpeg2000 sentinel 2 in r</a>), however it seems there is no straight answer yet. </p>