knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Functions that access Copernicus Marine raster files stored in the
ZARR format (cms_download_subset() and
cms_zarr_proxy()) generally require
BLOSC decompression.
This package uses the features provided by the GDAL library as ported
by the sf package.
Not all sf builds come with BLOSC support. If you receive an error
about missing BLOSC support, you need to reinstall sf with BLOSC.
Below you will find instructions to get BLOSC support on your OS.
The tool chain for building R packages on Windows includes BLOSC support by default. You just need to install the latest version of sf from CRAN. If this doesn't work, you can build sf from source with RTools >= 4.5.
On MacOS you can build the sf package from source, but ensure
that you have the GDAL library installed first using the
homebrew formula (which contains BLOSC support)
```{bash, eval=FALSE} brew install pkg-config brew install gdal
```r
install.packages("sf", type = "source", configure.args = "--with-proj-lib=$(brew --prefix)/lib/")
First run:
```{bash, eval=FALSE} sudo apt-get install libblosc-dev
Then reinstall `sf` to make sure it compiles with BLOSC support
## Fedora (and alike)
First run:
```{bash, eval=FALSE}
sudo yum install blosc-devel
Then reinstall sf to make sure it compiles with BLOSC support
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.