R: Don't save/load user workspace between sessions

use_blank_slate {usethis} | R Documentation

## Don't save/load user workspace between sessions

### Description

R can save and reload the user's workspace between sessions via an `.RData` file in the current directory. However, long-term reproducibility is enhanced when you turn this feature off and clear R's memory at every restart. Starting with a blank slate provides timely feedback that encourages the development of scripts that are complete and self-contained. More detail can be found in the blog post Project-oriented workflow.

### Usage

    use_blank_slate(scope = c("user", "project"))

### Arguments

`scope` | Edit globally for the current user, or locally for the current project

### Details

Only `use_blank_slate("project")` is automated so far, since RStudio currently only supports modification of user-level or global options via the user interface.

[Package usethis version 1.4.0 Index]