Skip to contents

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

Examples

ld_flags()
#> [1] "-L/home/runner/work/_temp/Library/hdf5lib/lib -lhdf5z -lpthread -ldl"