It saves the working environment in the website folder, the dataset as an .Rdata file in the dataset subfolder, and, if exportXlsx = TRUE (by default), exports it as an .xlsx file in the Dataset sub-folder. It assumes that previous operations have been completed, and both a 'metadata' and a 'contents' object exist. If they don't, it just prints this to the console.

SaveWebsite(dataset = NULL, saveEnvironment = FALSE,
  tidyCorpus = NULL, exportCsv = FALSE, exportTxt = FALSE,
  exportXlsx = FALSE, project = NULL, website = NULL)

Arguments

dataset

Defaults to NULL. If TRUE, it seeks for a `metadata` and a `text` object in the current environment. If a `castarter` dataset is provided, this is then stored as the dataset.

saveEnvironment

Logical, defaults to TRUE. If TRUE, saves environment as .Rdata in the correspodning website folder.

exportCsv

Logical, defaults to FALSE. If TRUE, exports the complete dataset in the .csv file format in the Dataset sub-folder.

exportXlsx

If equal to TRUE, exports the complete dataset in the .xlsx file format in the Dataset sub-folder.

project

Name of 'castarter' project. Must correspond to the name of a folder in the current working directory.

website

Name of a website included in a 'castarter' project. Must correspond to the name of a sub-folder of the project folder.

Value

A castarter dataset. It can however been used only for its side effects (save current workspace and dataset in relevant folders).

Examples

# NOT RUN {
SaveWebsite(dataset = dataset)
# }