Install hdf5r package in R 4.0.2

While installing the R package “hdf5r“ version 1.3.3, I encountered the error:

1
2
3
4
fatal error: hdf5.h: No such file or directory
#include <hdf5.h>
^~~~~~~~
compilation terminated.

My OS is Debian buster/10.6, and the package “libhdf5-dev” has been installed. It looks R cannot find the path of hdf5 header and library files.

Read More