TensorFlow will be installed into an "r-tensorflow" virtual or conda environment. Note that "virtualenv" is not available on Windows (as this isn't supported by TensorFlow).

install_tensorflow(
  method = c("conda", "virtualenv"),
  conda = "auto",
  version = "default",
  extra_packages = NULL,
  ...
)

Arguments

method

Installation method ("conda" or "virtualenv").

conda

The path to a conda executable. Use "auto" to allow reticulate to automatically find an appropriate conda binary. See Finding Conda and conda_binary() for more details.

version

TensorFlow version to install.

extra_packages

Additional PyPI packages to install along with TensorFlow.

...

Other arguments passed to reticulate::py_install().

Custom Installation

Custom installations of TensorFlow are not supported yet by deepredeff.

Additional Packages

If you wish to add additional PyPI packages to your TensorFlow environment you can either specify the packages in the extra_packages argument of install_tensorflow(), or alternatively install them into an existing environment using the reticulate::py_install() function.

Notice that this may have undesired side-effects on Windows installations.

Examples

if (FALSE) {
# Default installation
library(deepredeff)
install_tensorflow()
}