Skip to content

Instantly share code, notes, and snippets.

@jmbarbone
Created December 21, 2023 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmbarbone/755b4987364262cbaa89af79435ba6e2 to your computer and use it in GitHub Desktop.
Save jmbarbone/755b4987364262cbaa89af79435ba6e2 to your computer and use it in GitHub Desktop.
copy all objects to environment
vendor <- function() {
ns <- asNamespace("fuj")
writeLines(
unlist(sapply(
ls(ns),
function(x) {
format(call("assign", x, get(x, ns)))
}
)),
"R/fuj.R"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment