requirements_write {pysparklyr}R Documentation

Writes the 'requirements.txt' file, containing the needed Python libraries

Description

This is a helper function that it is meant to be used for deployments of the document or application. By default, deploy_databricks() will run this function the first time you use that function to deploy content to Posit Connect.

Usage

requirements_write(
  envname = NULL,
  destfile = "requirements.txt",
  overwrite = FALSE,
  ...
)

Arguments

envname

The name of, or path to, a Python virtual environment.

destfile

Target path for the requirements file. Defaults to 'requirements.txt'.

overwrite

Replace the contents of the file if it already exists?

...

Additional arguments passed to reticulate::py_list_packages()

Value

No value is returned to R. The output is a text file with the list of Python libraries.


[Package pysparklyr version 0.1.4 Index]