What fixes the problem in my Ubuntu, it fixes this:
sudo apt-get install zlib1g-dev
This is not immediately visible unless you complete:
install.packages("git2r")
he will throw this error:
The zlib library that is required to build
git2r was not found.
Please install:
zlib1g-dev (package on e.g. Debian and Ubuntu)
zlib-devel (package on e.g. Fedora, CentOS and RHEL)
and try again.
source
share