R/FGCheckGraphDir.R

Defines functions FGCheckGraphDir

FGCheckGraphDir <-
function(GraphicsDirName)
{
   if (! file.exists(GraphicsDirName)) {
      ok <- dir.create(GraphicsDirName, recursive = TRUE)
      if (ok) {
         cat("Note: directory", GraphicsDirName, "created for graphics files.\n")
      } else {
         cat("Note: directory", GraphicsDirName, "could not be created")
         return(invisible(NULL))
      }  # end else group
   }  # end file.exists group
}  # end function FGCheckGraphDir
rcheshire/FishGraph documentation built on Feb. 23, 2024, 11:27 a.m.