Here is another hint - devtools::load_all gives this error:
> devtools::load_all(".")
Loading rtree
Error in Rcpp::loadModule(module = "rtreecpp", what = TRUE, env = ns, :
Unable to load module "rtreecpp": cannot allocate vector of size 11449.0 Gb
> traceback()
6: stop(gettextf("Unable to load module \"%s\": %s", as(module,
"character"), loadM$message))
5: Rcpp::loadModule(module = "rtreecpp", what = TRUE, env = ns,
loadNow = TRUE)
4: action(nsenv)
3: run_ns_load_actions(package)
2: pkgload::load_all(path = path, reset = reset, recompile = recompile,
export_all = export_all, helpers = helpers, quiet = quiet,
...)
1: devtools::load_all(".")
AFAIK I don't explicitly allocate anything on package load, certainly not 11 TB...