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.

Installation

You can install pkgbuild from github with:

# install.packages("devtools")
devtools::install_github("r-lib/pkgbuild")

Example

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

News

Reference manual

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

install.packages("pkgbuild")

1.0.1 by Jim Hester, 6 days ago


https://github.com/r-lib/pkgbuild


Report a bug at https://github.com/r-lib/pkgbuild/issues


Browse source code at https://github.com/cran/pkgbuild


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


Documentation:   PDF Manual  


GPL-3 license


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

Suggests Rcpp, testthat, covr


Imported by RInno, pkgload, rcmdcheck.


See at CRAN