local_package | R Documentation |
Creates a package in a temporary directory and sets the working directory until the local frame is destroyed.
local_package(
pkg_name = fs::path_file(fs::file_temp("pkg")),
branches = c("main", "devel"),
r_sample = NULL,
setwd = TRUE,
envir = parent.frame()
)
pkg_name |
The name of the temporary package. |
branches |
Branches to be created. |
r_sample |
Character with code to write to |
setwd |
Whether or not the working directory should be temporarily set to the package root. |
envir |
|
This is primarily for testing.
Other testers:
local_clean_touchstone()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.