create_env | R Documentation |
Create Conda Environment with specific packages installed to be used by run()
.
create_env(
packages = NULL,
env_file = NULL,
env_name = "condathis-env",
channels = c("bioconda", "conda-forge"),
method = c("native", "auto"),
additional_channels = NULL,
platform = NULL,
verbose = "silent",
overwrite = FALSE
)
packages |
Character vector. Names of the packages, and
version strings if necessary, e.g. 'python=3.11'. The use of the |
env_file |
Character. Path to the YAML file with Conda Environment
description. If this argument is used, the |
env_name |
Character. Name of the Conda environment where the packages are going to be installed. Defaults to 'condathis-env'. |
channels |
Character vector. Names of the channels to be included. By default 'c("bioconda", "conda-forge")' are used for solving dependencies. |
method |
Character. Beckend method to run |
additional_channels |
Character. Additional Channels to be added to the default ones. |
platform |
Character. Platform to search for |
verbose |
Character string specifying the verbosity level of the function's output. Acceptable values are:
|
overwrite |
Logical. Should environment always be overwritten?
Defaults to |
An object of class list
representing the result of the command
execution. Contains information about the standard output, standard error,
and exit status of the command.
## Not run:
condathis::with_sandbox_dir({
# Create a Conda environment and install the CLI `fastqc` in it.
condathis::create_env(
packages = "fastqc==0.12.1",
env_name = "fastqc-env",
verbose = "output"
)
#> ! Environment fastqc-env succesfully created.
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.