The gander package makes use of a few notable user-facing options.
Choosing models
gander uses the .gander_fn
and .gander_args
options to configure which
model powers the addin. .gander_fn
is the name of an ellmer chat_*()
function as a string, and .gander_args
is a list of arguments to pass to
that function. For example, to use OpenAI's GPT-4o-mini, you might write:
Paste that code in your .Rprofile
via usethis::edit_r_profile()
to always
use the same model every time you start an R session.
Style/taste
By default, gander responses use the following style
conventions: "Use tidyverse style and, when relevant, tidyverse packages. For example, when asked to plot something, use ggplot2, or when asked to transform data, using dplyr and/or tidyr unless explicitly instructed otherwise. " Set the .gander_style
option to
some other string to tailor responses to your own taste, e.g.:
options(.gander_style = "Use base R.")
Paste that code in your
.Rprofile
via usethis::edit_r_profile()
to always use the same style (or
even always begin with some base set of knowledge about frameworks you
work with often) every time you start an R session.