Reference a permissively-licensed R package from GitHub for inclusion in your own R package. This function:
Creates
inst/vendor/pkg/with LICENSE files and a READMECreates
R/vendor-pkg.Rwith attribution header and optional vendored codeCreates
src/vendor-pkg.c,src/vendor-pkg.cpporsrc/rust/src/vendor-pkg.rsfor vendored C, C++ or Rust sourcesUpdates
DESCRIPTION(Authors@RandCopyrightfields)Prints an acknowledgement snippet for your README
Arguments
- pkg
GitHub repository specification in
"owner/repo"form or a full GitHub URL (e.g."https://github.com/owner/repo").- ...
File paths within the vendor package to copy into your package. Files are routed by extension:
.Rfiles are appended toR/vendor-pkg.R,.cfiles tosrc/vendor-pkg.c,.cppfiles tosrc/vendor-pkg.cpp, and.rsfiles tosrc/rust/src/vendor-pkg.rs. Paths without a directory component are looked up in the conventional directory of their language. If empty (default), only the infrastructure is set up.- branch
Github repository branch name. Defaults to
"main"- path
Path to the target package directory. If
NULL(the default), uses the current working directory.
