Install the python library used as the backbone of this package. You can pass arguments on to reticulate::py_install(), but python-chess needs python_version = "3.9" and pip = TRUE.

install_chess(
  method = c("auto", "virtualenv", "conda"),
  conda = "auto",
  envname = NULL,
  conda_python_version = "3.9",
  ...
)

Arguments

method

Installation method (by default, "auto" automatically finds a method that will work in the local environment, but note that the "virtualenv" method is not available on Windows)

conda

Path to conda executable (or "auto" to find conda using the PATH and other conventional install locations)

envname

Name of Python environment to install within

conda_python_version

the python version installed in the created conda environment (Python 3.9 is installed by default)

...

other arguments passed to reticulate::conda_install() or reticulate::virtualenv_install()

Value

TRUE if installation is successful