Type: Package
Title: Headers and Static Libraries for 'HDF5'
Version: 2.0.0.2
Description: 'HDF5' (Hierarchical Data Format 5) is a high-performance library and file format for storing and managing large, complex data. This package provides the static libraries and headers for the 'HDF5' 'C' library (release 2.0.0). It is intended for R package developers to use in the 'LinkingTo' field, which eliminates the need for users to install system-level 'HDF5' dependencies. This build is compiled with thread-safety enabled and supports dynamic loading of external compression filters. 'HDF5' is developed by 'The HDF Group' https://www.hdfgroup.org/.
URL: https://github.com/cmmr/hdf5lib, https://cmmr.github.io/hdf5lib/
BugReports: https://github.com/cmmr/hdf5lib/issues
License: MIT + file LICENSE
Encoding: UTF-8
Depends: R (≥ 4.2.0)
NeedsCompilation: yes
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Config/testthat/edition: 3
RoxygenNote: 7.3.3
Config/Needs/website: rmarkdown
Packaged: 2025-11-27 23:21:40 UTC; Daniel
Author: Daniel P. Smith ORCID iD [aut, cre], The HDF Group [cph] (Copyright holder of the HDF5 library), Jean-loup Mark [cph] (Copyright holder of the zlib library), Gailly Adler [cph] (Copyright holder of the zlib library)
Maintainer: Daniel P. Smith <dansmith01@gmail.com>
Repository: CRAN
Date/Publication: 2025-12-02 15:20:02 UTC

hdf5lib: Headers and Static Libraries for 'HDF5'

Description

hdf5lib provides a self-contained, static build of the HDF5 C library (version 1.14.6) and zlib (version 1.3.1).

Details

This package provides no R functions and is intended for R package developers to use in the LinkingTo field of their DESCRIPTION file. It allows other R packages to easily link against HDF5 without requiring users to install any system-level dependencies.

Author(s)

Maintainer: Daniel P. Smith dansmith01@gmail.com (ORCID)

Other contributors:

See Also

Useful links:


Get C/C++ Compiler Flags for hdf5lib

Description

Provides the required C/C++ compiler flags to find the HDF5 header files bundled with the hdf5lib package.

Usage

c_flags(api = "latest")

Arguments

api

A character string specifying the HDF5 API version to use. This adds a preprocessor directive like -DH5_USE_114_API_DEFAULT to ensure that the compiled code uses symbols compatible with a specific version of the HDF5 API. This is useful for maintaining compatibility with older HDF5 versions. Supported values are 200, 114, 112, 110, 18,and 16. Defaults to "latest", which corresponds to the newest supported API version.

Value

A scalar character vector containing the compiler flags (e.g., the -I path to the package's inst/include directory).

See Also

ld_flags()

Examples

c_flags()
c_flags(api = "114")


Get C/C++ Linker Flags for hdf5lib

Description

Provides the required linker flags to link against the static HDF5 library (libhdf5z.a) bundled with the hdf5lib package.

Usage

ld_flags(api = "latest")

Arguments

api

A character string specifying the HDF5 API version. This parameter is included for consistency with c_flags() and is reserved for future use. It currently has no effect on the linker flags. Supported values are 200, 114, 112, 110, 18, and 16. Defaults to "latest".

Value

A scalar character vector containing the linker flags.

See Also

c_flags()

Examples

ld_flags()