configure: Configure 'dstack'

Description Usage Arguments

Description

Function allows to add or replace profile.

Usage

1
2
3
4
5
6
7
8
configure(
  profile = "default",
  user,
  token,
  persist = c("global", "local", "in_place"),
  server = NULL,
  dstack_dir = .dstack_env$dstack_dir
)

Arguments

profile

A name of profile. It will be "default" if not specified.

user

Username in 'dstack'.

token

A token. It can be obtained from https://dstack.ai web site.

persist

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

Server to connect. By default it's NULL, so default API endpoint will be used.

dstack_dir

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.


dstack documentation built on Aug. 12, 2020, 5:08 p.m.