Nothing
local_package <- function() {
dir <- tempfile()
if (!dir.exists(dir)) {
dir.create(dir)
}
withr::defer(unlink(dir, recursive = TRUE), parent.frame())
writeLines("Package: testPkg", file.path(dir, "DESCRIPTION"))
writeLines("useDynLib(testPkg, .registration = TRUE)", file.path(dir, "NAMESPACE"))
desc::desc(dir)
}
pkg_path <- function(pkg) {
dirname(pkg$.__enclos_env__$private$path)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.