Function allows to add or replace profile.
configure(
profile = "default",
user,
token,
persist = c("global", "local", "in_place"),
server = NULL,
dstack_dir = .dstack_env$dstack_dir
)A name of profile. It will be "default" if not specified.
Username in 'dstack'.
A token. It can be obtained from https://dstack.ai web site.
Persistence level. It can be 'local' - this means that config will be stored in working directory, 'global' - config will be stored in user's home,cor 'in-place' - in this case config will be store in the memory and exists only while R session exists.
Server to connect. By default it's NULL, so default API endpoint will be used.
Directory where dstack files are stored. By default it is '.dstack', so in the case of global persistence
path to config file will be ~/.dstack/config.yaml.