I am using R in docker . I have install libraries in docker by using docker hub.but failed . Below is the error i am facing
Error: package or namespace load failed for ‘geojsonio’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/rgeos/libs/rgeos.so':
libgeos_c.so.1: cannot open shared object file: No such file or directory
That package has a lot of Linux library dependencies which probably aren't in the image. You can install them by adding these install commands to your Dockerfile.
apt-get install -y libcurl4-openssl-dev \
libssl-dev \
libjq-dev \
libprotobuf-dev \
protobuf-compiler \
make \
libgeos-dev \
libudunits2-dev \
libgdal-dev \
gdal-bin \
libproj-dev \
libv8-dev
You can find that information at https://packagemanager.rstudio.com/client/#/repos/2/packages/geojsonio