Examples for 'cpp11::cpp_vendor'


Vendor the cpp11 dependency

Aliases: cpp_vendor

Keywords:

### ** Examples

# create a new directory
dir <- tempfile()
dir.create(dir)

# vendor the cpp11 headers into the directory
cpp_vendor(dir)

list.files(file.path(dir, "inst", "include", "cpp11"))
 [1] "altrep.hpp"           "as.hpp"               "attribute_proxy.hpp" 
 [4] "data_frame.hpp"       "declarations.hpp"     "doubles.hpp"         
 [7] "environment.hpp"      "external_pointer.hpp" "function.hpp"        
[10] "integers.hpp"         "list_of.hpp"          "list.hpp"            
[13] "logicals.hpp"         "matrix.hpp"           "named_arg.hpp"       
[16] "protect.hpp"          "r_bool.hpp"           "r_string.hpp"        
[19] "r_vector.hpp"         "R.hpp"                "raws.hpp"            
[22] "sexp.hpp"             "strings.hpp"         
# cleanup
unlink(dir, recursive = TRUE)

[Package cpp11 version 0.4.2 Index]