destination_dir,: character(1) vector with the path of the destination folder to produce the snapshot
types,: character vector indicating the types of data to include on a snapshot. Some of: "settings", "dependencies", "machine-learning", "aggregations", "tweets", "logs"
tweets_period,: date(2) start and end dates to filter tweets to include on snapshot (if selected)
aggregated_period,: date(2) start and end dates to filter time series to include on snapshot (if selected)
compress,: logical(1) whether to compress or not the output file
progress,: function to report progress during execution.
Returns
Nothing
Details
This function can be used to create a a portable file to move your epitweetr installation in a single file, to backup your data, to archive your old data or to send information to technical team in order to reproduce an observed issue. Different kinds of data can be included on the snapshot depending on the type of parameter. Possible values are: - 'settings': Including all setting files of your installation (excluding passwords) - 'dependencies': All jars and winutils.exe on windows installations - 'machine-learning': All trained models and vectors and training data (this can include tweet text which is personal data) - 'aggregations': Epitweetr aggregated time series - 'tweets': Tweets collected by epitweetr - 'logs': Log files produced automatically on windows task scheduler tasks.
Examples
if(FALSE){#importing epitweer library(epitweetr) message('Please choose the epitweetr data directory') setup_config(file.choose())#creating a compressed snapshot for settings and logs create_snapshot(getwd(), c("settings","dependencies"), compress =TRUE)}