Find Tools Needed to Build R Packages

Provides functions used to build R packages. Locates compilers needed to build R packages on various platforms and ensures the PATH is configured appropriately so R can use them.

Travis-CI Build Status AppVeyor Build Status Coverage status

The goal of pkgbuild is to make it easy to build packages with compiled code. It provides tools to configure your R session, and check that everything is working ok. If you are using RStudio, it also helps you trigger automatic install of the build tools.


You can install pkgbuild from github with:

# install.packages("devtools")


# Check that you have the build tools installed
pkgbuild::check_build_tools(debug = TRUE)
# Build a package
# Run your own code in an environment guaranteed to 
# have build tools available


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.2 by Jim Hester, 18 hours ago

Report a bug at

Browse source code at

Authors: Hadley Wickham [aut] , Jim Hester [aut, cre] , RStudio [cph]

Documentation:   PDF Manual  

GPL-3 license

Imports callr, cli, crayon, desc, prettyunits, R6, rprojroot, withr

Suggests Rcpp, testthat, covr

Imported by RInno, pkgload, rcmdcheck, rstan.

Suggested by remotes.

See at CRAN