R/save.R

Defines functions saveDESCRIPTION

saveDESCRIPTION <- function(name){
  fields <- data.frame(
    Package = name,
    Type="Session",
    Version = as.character(utils::packageVersion('opencpu')),
    Author = "OpenCPU",
    Date = as.character(Sys.Date()),
    Description = "This file is automatically generated by OpenCPU.",
    stringsAsFactors = FALSE
  )
  write.dcf(fields, file = "DESCRIPTION")
}

Try the opencpu package in your browser

Any scripts or data that you put into this service are public.

opencpu documentation built on Aug. 7, 2023, 5:12 p.m.