Learn R Programming

cpp4r (version 0.4.0)

unvendor: 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)

Value

The path to the unvendored code (invisibly).

Arguments

path

The directory with the vendored headers. It is recommended to use "./src/vendor". The default is NULL.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab