inst/other/simpleTests.R

library(R6cpp)
path  = "inst/include/R6cpp.h"


classes = rp_parse_cpp(path)

#rp_create_files(classes, path)

classList = rp_create_class_list(classes[[1]])

classList$constructorsSlots

classList$nameClass



 %>% cat


x = R6Test$new(1e6)
its = as.numeric(1:1e6)
Rprof()
for(i in its) x$push_back(i)
Rprof(NULL)

xx = numeric(1e6)

Rprof()
for(i in its) xx[i] = i
Rprof(NULL)

summaryRprof()
x$at(50)
zzawadz/R6cpp documentation built on May 5, 2019, 2:43 a.m.