Aliases: package.skeleton
### ** Examples require(stats) ## two functions and two "data sets" : f <- function(x, y) x+y g <- function(x, y) x-y d <- data.frame(a = 1, b = 2) e <- rnorm(1000) ## Don't show: owd <- getwd() setwd(tempdir()) ## End(Don't show) package.skeleton(list = c("f","g","d","e"), name = "mypkg")
Warning in package.skeleton(list = c("f", "g", "d", "e"), name = "mypkg"): objects ''f', 'g', 'd', 'e'' not found
Error in package.skeleton(list = c("f", "g", "d", "e"), name = "mypkg"): no R objects specified or available
## Don't show: setwd(owd) ## End(Don't show)