pkgbuild v1.0.0
0
Monthly downloads
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.
Readme
pkgbuild
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 guarnteed to
# have build tools available
pkgbuild::with_build_tools(my_code)
Functions in pkgbuild
Name | Description | |
pkg_has_src | Does a source package have src/ directory? | |
without_compiler | Tools for testing pkgbuild | |
compiler_flags | Default compiler flags used by devtools. | |
build | Build package | |
compile_dll | Compile a .dll/.so from source. | |
clean_dll | Remove compiled objects from /src/ directory | |
has_build_tools | Are build tools are available? | |
has_compiler | Is a compiler available? | |
rcmd_build_tools | Call R CMD <command> with build tools active | |
with_debug | Temporarily set debugging compilation flags. | |
has_latex | Is latex installed? | |
rtools_path | Is Rtools installed? | |
pkgbuild_process | Build package in the background | |
No Results! |
Last month downloads
Details
License | GPL-3 |
Encoding | UTF-8 |
LazyData | true |
RoxygenNote | 6.0.1 |
URL | https://github.com/r-pkgs/pkgbuild |
BugReports | https://github.com/r-pkgs/pkgbuild/issues |
NeedsCompilation | no |
Packaged | 2018-06-27 14:22:02 UTC; jhester |
Repository | CRAN |
Date/Publication | 2018-06-27 15:19:12 UTC |
imports | callr (>= 2.0.0) , crayon , desc , R6 , rprojroot , withr (>= 2.1.2) |
suggests | covr , Rcpp , testthat |
depends | R (>= 3.1) |
Contributors | RStudio, Hadley Wickham |
Include our badge in your README
[](http://www.rdocumentation.org/packages/pkgbuild)