Palpable is an example pal extension
package. It provides two pals, "boop"
and "wop"
, that are automatically
registered with pal on package load. They're pretty silly; they just reply
"beep bop boop" and "wee wee wop" regardless of what you ask of them,
respectively.
There are really only two non-boilerplate components to this R package:
- There's one markdown file per role in
inst/
(each created withprompt_new()
). - There's a call to
pal::directory_load()
in the package's.onLoad()
, referencing the extension package'ssystem.file()
. This will automatically register"beep"
and"wop"
with pal when palpable is loaded.
You can install the development version of palpable like so:
pak::pak("simonpcouch/palpable")
When users load the package, two new roles will be registered with the pal package: