unvendor: Unvendor the armadillo4r headers

View source: R/unvendor.R

unvendorR Documentation

Unvendor the armadillo4r headers

Description

This function removes the vendored armadillo4r 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 armadillo4r headers into the directory
vendor(dir)

# unvendor the armadillo4r headers from the directory
unvendor(dir)

# cleanup
unlink(dir, recursive = TRUE)

armadillo4r documentation built on Nov. 5, 2025, 6:23 p.m.