Learn R Programming

blit (version 0.2.0)

cmd_wd: Setup the context for the command

Description

Setup the context for the command

Usage

cmd_wd(command, wd = NULL)

cmd_envvar(command, ..., action = "replace", sep = NULL)

cmd_envpath(command, ..., action = "prefix", name = "PATH")

cmd_conda(command, ..., root = NULL, action = "prefix")

Value

  • cmd_wd: The command object itself, with working directory updated.

  • cmd_envvar: The command object itself, with running environment variable updated.

  • cmd_envpath: The command object itself, with running environment variable specified in name updated.

  • cmd_conda: The command object itself, with running environment variable PATH updated.

Arguments

command

A command object.

wd

A string or NULL define the working directory of the command.

...

<dynamic dots>:

  • cmd_envvar: Named character define the environment variables.

  • cmd_envpath: Unnamed character to define the PATH-like environment variables name.

  • cmd_conda: Unnamed character to specify the name of conda environment.

action

Should the new values "replace", "prefix" or "suffix" existing environment variables?

sep

A string to separate new and old value when action is "prefix" or "suffix". By default, " " will be used.

name

A string define the PATH environment variable name. You can use this to define other PATH-like environment variable such as PYTHONPATH.

root

A string specifying the path to the conda root prefix. By default, it utilizes the environment variable BLIT_CONDA_ROOT or the option blit.conda.root. If neither is set, the root prefix of appmamba() will be used.

Functions

  • cmd_wd(): define the working directory.

  • cmd_envvar(): define the environment variables.

  • cmd_envpath(): define the PATH-like environment variables.

  • cmd_conda(): Set conda-like path to the PATH environment variables.

See Also

  • cmd_run()/cmd_help()/cmd_background()

  • cmd_on_start()/cmd_on_exit()

  • cmd_on_succeed()/cmd_on_fail()

  • cmd_parallel()