Learn R Programming

jwutil (version 1.2.3)

jw_scan_build: Build with current Makevars, but with clang scan-build static analysis

Description

C and C++ compilers are replaced by `scan-build clang`, and restored afterwards. Other flags and anything else in `~/.R/Makevars` is left alone.

Usage

jw_scan_build(path = ".", clang = "clang-8",
  scan_build = "scan-build")

Arguments

path

Path to package root, default is ".".

clang

Path or name of clang compiler executable. Currently `clang-8` which is what MacOS homebrew currently (early 2019) provides.

scan_build

Path or name of scan-build executable. Current `scan-build`, also from MacOS Homebrew. On linux, this has the LLVM version suffix, e.g., `scan-build-8`.