| 3499 | // Dynlib cache that allows lookup by either file path or code contents |
| 3500 | |
| 3501 | void dynlibCacheInsert(const std::string& cacheDir, |
| 3502 | const std::string& file, |
| 3503 | const std::string& code, |
| 3504 | const SourceCppDynlib& dynlib) |
| 3505 | { |
| 3506 | Rcpp::Environment rcppEnv = Rcpp::Environment::namespace_env("Rcpp"); |
| 3507 | Rcpp::Function dynlibInsertFunc = rcppEnv[".sourceCppDynlibInsert"]; |
| 3508 | dynlibInsertFunc(cacheDir, file, code, dynlib.toList()); |
| 3509 | } |
| 3510 | |
| 3511 | void dynlibCacheInsertFile(const std::string& cacheDir, |
| 3512 | const std::string& file, |
no test coverage detected