recovr: Recover RStudio Files

Description Usage Arguments Value Examples

View source: R/recovr.R

Description

Recovers unsaved changes or abandoned auto-save copies of files previously opened in RStudio.

Usage

1
recovr(project_path, out_folder = NULL, force = FALSE)

Arguments

project_path

The project directory from which to recover files. Typically a path on disk to the directory. Use the special value NULL to recover files from sessions not associated with projects, and "all" to recover files from every recently used project and session.

out_folder

The path to which recovered files should be written. Defaults to the folder "recovered_XXX" in the root of the project when run on a single project (where XXX is the current date/time), or the current working directory if not.

force

Whether out_folder should be overwritten if it already exists.

Value

A data frame listing the recovered files.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Recover files in the current project to the temporary directory
recovr()

# Recover all recent projects/files to a custom folder
recovr(project_path = "all", out_folder = "~/scratch/rstudio")


## End(Not run)

jmcphers/rsrecovr documentation built on Feb. 10, 2021, 8:32 a.m.