create_virtual_env: Make a new virtual environment

Description Usage Arguments Value Examples

View source: R/helper_funcs.R

Description

This function creates a new virtual environment and initializes the new virtual environment. In doing so, this function sets your python version and one may specify a specific python version. This is useful if you have multiple versions of python installed. When making a new virtual environment, if the python version isn't set, then your default one will be used.

Usage

1
create_virtual_env(virtualenv, version = NULL, verbose = TRUE)

Arguments

virtualenv

Specify conda environment name

version

Set path to specific version of python.

verbose

TRUE or FALSE. When TRUE, shows python and conda configuration. Default: TRUE

Value

None

Examples

1
2
3
4
5
6
## Not run: 
create_virtual_env(version = "/usr/bin/python3", 
    virtualenv = "r-reticulate", 
    verbose = TRUE)

## End(Not run)

PressPurt documentation built on Oct. 23, 2020, 8:07 p.m.