R/create_sp.R

Defines functions create_sp

Documented in create_sp

#' Title
#'
#' @param lastname
#'
#' @return
#' @export

create_sp = function(lastname) {

  folders = c(
    "doc",
    "code",
    "ref"
  )

  for(i in folders) {
    dir.create(path = i)
  }

  file.create("code/01_cleaning.R")
  file.create("code/02_createRmd.R")
  file.copy(
    "~/template-proj/doc/sp_lastname.Rmd",
    paste0("doc/sp_", lastname, ".Rmd")
  )
  file.copy(
    "~/template-proj/README.md",
    "README.md"
  )

}
emjcampos/efuncs documentation built on Dec. 10, 2023, 11:16 p.m.