Title: | C++ Tools for Cleaning Strings |
---|---|
Description: | Provides function declarations and inline function definitions that facilitate cleaning strings in C++ code before passing them to R. |
Authors: | Mauricio Vargas Sepulveda [aut, cre] , Munk School of Global Affairs and Public Policy [fnd] |
Maintainer: | Mauricio Vargas Sepulveda <[email protected]> |
License: | Apache License (>= 2) |
Version: | 0.1.0 |
Built: | 2025-01-15 05:21:19 UTC |
Source: | https://github.com/pachadotdev/pudu |
Vendoring is the act of making your own copy of the 3rd party packages your project is using. It is often used in the go language community.
cpp_vendor(dir = NULL, subdir = "/inst/include")
cpp_vendor(dir = NULL, subdir = "/inst/include")
dir |
The directory to vendor the code into. |
subdir |
The subdirectory to vendor the code into. |
This function vendors cpp11 and pudu into your package by copying the cpp11 and pudu headers into the 'inst/include' folder and adding 'cpp11 version: XYZ' and 'pudu version: XYZ' to the top of the files, where XYZ is the version of cpp11 and pudu currently installed on your machine.
Vendoring places the responsibility of updating the code on you. Bugfixes and new features in cpp11 and pudu will not be available for your code until you run 'cpp_vendor()' again.
The file path to the vendored code (invisibly).
# create a new directory dir <- tempdir() dir.create(dir) # vendor the cpp11 headers into the directory cpp_vendor(dir)
# create a new directory dir <- tempdir() dir.create(dir) # vendor the cpp11 headers into the directory cpp_vendor(dir)