Learn R Programming

pensar (version 0.4.2)

use_vault: Remember a vault path for this R session

Description

Sets options("pensar.vault") so subsequent pensar calls resolve to path without repeating the argument. Persist by adding pensar::use_vault("~/wiki") to ~/.Rprofile as a global default. Both PENSAR_VAULT and a project-local schema.md found via walk-up will override this option (see default_vault resolution order).

Usage

use_vault(path)

Value

The resolved path, invisibly.

Arguments

path

Path to your pensar vault directory.

Examples

Run this code
v <- tempfile("vault-")
init_vault(v, rproj = FALSE, agent_instructions = FALSE)
use_vault(v)
status()
options(pensar.vault = NULL)
unlink(v, recursive = TRUE)

Run the code above in your browser using DataLab