R/saveResults.R

Defines functions saveResults

Documented in saveResults

saveResults <- function(path = "VisCountSessions.csv") {
  if (exists("VisCountSessions")) {
    write.csv(VisCountSessions, path, row.names = FALSE)
    message("Results saved at '", getwd(), "/VisCountSessions.csv'.\nRe-start R if you want to start a new visCount session, or keep going\nif you want results added to the current session.")
  } else {
    message ("No VisCountSessions results to save. Use visCount() a few times first,\nproviding some count estimates.")
  }
}

Try the VisCount package in your browser

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

VisCount documentation built on May 2, 2019, 4:52 p.m.