Skip to contents

install_python() uses reticulate to create or activate a Python virtual environment and install the required packages for running spacyr (sentence tokenization) and huggingfaceR (issue-area classification via ManifestoBERTA).

Usage

install_python(env_name = "iscores", manifestoberta_model_id = "2024-1-1")

Arguments

env_name

Character. Name of the Python virtual environment to set up. Defaults to "iscores".

manifestoberta_model_id

Character. Version of the ManifestoBERTA model to load (must match a valid model). Defaults to "2024-1-1".

Value

Invisibly returns TRUE.