R/generic-description.r

Defines functions generic_description

Documented in generic_description

#' Copies a generic DESCRIPTION file to current working directory
#'
#' @export

generic_description <- function() {
  x <- readLines(system.file("generic-description.txt", package="breheny"))
  x[grep('^Package', x)] <- paste0('Package: ', basename(getwd()))
  x[grep('^Date', x)] <- paste0('Date: ', Sys.Date())
  writeLines(x, 'DESCRIPTION')
}
pbreheny/breheny documentation built on April 26, 2024, 10:40 a.m.