tests/testthat/fixtures/foo/R/foo.R

#' @useDynLib foo foo_
#' @export
foo <- function() {
  .Call(foo_)
}

.onUnload <- function(libpath) {
  library.dynam.unload("foo", libpath)
}

Try the pkgdepends package in your browser

Any scripts or data that you put into this service are public.

pkgdepends documentation built on May 29, 2024, 1:56 a.m.