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.
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:
# Check that you have the build tools installedpkgbuild::check_build_tools(debug = TRUE)# Build a packagepkgbuild::build("/path/to/my/package")# Run your own code in an environment guaranteed to# have build tools availablepkgbuild::with_build_tools(my_code)