| unvendor {cpp4r} | R Documentation |
Unvendor the cpp4r headers
Description
This function removes the vendored cpp4r headers from your package by automatically finding the vendored headers.
Usage
unvendor(path = NULL)
Arguments
path |
The directory with the vendored headers. It is recommended to use "./src/vendor".
The default is NULL.
|
Value
The path to the unvendored code (invisibly).
Examples
# create a new directory
dir <- paste0(tempdir(), "/", gsub("\\s+|[[:punct:]]", "", Sys.time()))
dir.create(dir, recursive = TRUE)
# vendor the cpp4r headers into the directory
vendor(dir)
# unvendor the cpp4r headers from the directory
unvendor(dir)
# cleanup
unlink(dir, recursive = TRUE)