revdep/library/diyar/new/Rcpp/tinytest/testRcppInterfaceExporter/R/exporter.R

#' @useDynLib testRcppInterfaceExporter, .registration = TRUE
#' @importFrom Rcpp sourceCpp
NULL

flags <- new.env(parent = emptyenv())

#' @export
reset_flags <- function() {
  flags$cpp_interface_upstream <- FALSE
}
.onLoad <- function(lib, pkg) {
  reset_flags()
}

#' @export
peek_flag <- function(name) {
  flags[[name]]
}
OlisaNsonwu/diyar documentation built on April 22, 2024, 6:27 p.m.