This function removes the vendored cpp4r headers from your package and
restores the LinkingTo: cpp4r
field in the DESCRIPTION file if it was removed.
Examples
# create a new directory
dir <- tempfile()
dir.create(dir)
# vendor the cpp4r headers into the directory
vendor(dir)
#> Makevars and/or Makevars.win should have a line such as 'PKG_CPPFLAGS = -I../inst/include'
#> DESCRIPTION should not have lines such as 'LinkingTo: cpp4r'
# unvendor the cpp4r headers from the directory
unvendor(dir)
list.files(file.path(dir, "inst", "include", "cpp4r"))
#> character(0)
# cleanup
unlink(dir, recursive = TRUE)