Learn R Programming

maketools (version 1.3.1)

pkgconfig: Query pkg-config

Description

Wrappers for the pkg-config utility to query information on C/C++ libraries that are available on your system.

Usage

pc_info()

pc_pkg_list()

pc_pkg_exists(pkg = "libcurl")

pc_pkg_version(pkg = "libcurl")

pc_pkg_cflags(pkg = "libcurl")

pc_pkg_libs(pkg = "libcurl", static = FALSE)

pc_pkg_info(pkg = "libcurl")

Arguments

pkg

names of the pkg-config libraries to query

static

get libs for static linking, i.e. include dependencies

See Also

Other maketools: diagnostics, make(), r_config, sysdeps

Examples

Run this code
# Check if pkg-config is available
(info <- pc_info())
if(info$available)
  pc_pkg_list()

Run the code above in your browser using DataLab