load_environment | R Documentation |
This function activates a specified Python virtual environment and sources Python modules used by the vmsae package, including models and python scripts.
load_environment(envname = "vmsae", is_conda = FALSE)
envname |
Character. The name of the Python environment to create or update.
Default is |
is_conda |
Boolean. The indicator for whether the loaded environment is a conda environment.
Default is |
The function loads four Python scripts located in the package's py/
directory:
vgmcar.py
vae.py
train_vae.py
car_dataset.py
The environment must be created beforehand (e.g., using install_environment()
),
and must include all Python dependencies required by these modules.
No return value, called for side effects
## Not run:
library(vmsae)
# this function is time consuming for the first run
install_environment()
load_environment() # Load default "vmsae" environment
# this function is time consuming for the first run
install_environment("custom")
load_environment("custom") # Load custom virtual environment
load_environment("custom", is_conda = TRUE) # Load custom conda environment
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.