From 5729f148dbd431cdd59d000091023d2b4910a319 Mon Sep 17 00:00:00 2001 From: Corneel <6919390+CorneeldH@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:01:57 +0100 Subject: [PATCH] fix typo (#71) --- vignettes/custom.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vignettes/custom.Rmd b/vignettes/custom.Rmd index 1f9988d..4643bb0 100644 --- a/vignettes/custom.Rmd +++ b/vignettes/custom.Rmd @@ -36,7 +36,7 @@ Answering these questions can help you better understand whether your problem is ## The prompt directory -The easiest way to write a new pal that's loaded every time you load R is to add a markdown file to the _prompt directory_. The prompt directory is a folder of markdown files that serves as a library of possible pals. By default, the prompt directory lives at `~/.config/pal`, but that default can be changed by adding a `.pal_dir` option in your `.Rprofile` using `options(pal_dir = some/dir/`). `directory_path()` returns the path to the directory, `directory_set()` changes it, `directory_list()` enumerates all of the prompts that currently live in it, and `directory_load()` registers/refreshes all of the prompts in the directory with the pal package. +The easiest way to write a new pal that's loaded every time you load R is to add a markdown file to the _prompt directory_. The prompt directory is a folder of markdown files that serves as a library of possible pals. By default, the prompt directory lives at `~/.config/pal`, but that default can be changed by adding a `.pal_dir` option in your `.Rprofile` using `options(.pal_dir = some/dir/`). `directory_path()` returns the path to the directory, `directory_set()` changes it, `directory_list()` enumerates all of the prompts that currently live in it, and `directory_load()` registers/refreshes all of the prompts in the directory with the pal package. To create a new pal, add a prompt to pal's prompt directory with `prompt_new()`. You'll need to supply a `role` (a single keyword describing what the pal does, like `"roxygen"`) and an `interface` describing how the pal will interact with the selection (one of `"replace"`, `"prefix"`, or `"suffix"`). You can also "pre-fill" the contents of the prompt by supplying a file path with the `contents` argument.