> ## Documentation Index
> Fetch the complete documentation index at: https://docs.domino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Export files as Python or R package

If you organize the files in a project as an installable package, then you can choose to export it as such. When another project imports this project, Domino will automatically install the package at runtime, making it available to your code.

1. Configure your project to [export files](/cloud/platform-capabilities/core-concepts/projects/collaborate-on-projects/export-import-project).

2. From **Code Package**, select the language.

   <img src="https://mintcdn.com/dominodatalab-e871cec4/SEsWOYyvlRclZqNC/images/6.0/export-files-packages.png?fit=max&auto=format&n=SEsWOYyvlRclZqNC&q=85&s=658765433b6f094352cfe6496eba8638" alt="Export file packages" width="2396" height="720" data-path="images/6.0/export-files-packages.png" />

The following describes the language-specific pattern required for any package.

<Tabs>
  <Tab title="R">
    See the [official manual](https://cran.r-project.org/doc/manuals/r-release/R-exts.html) for an in-depth guide to writing R extensions.

    In summary, each R package requires:

    * A directory called `R/` with code files.

    * A directory called `man/` with documentation files.

    * A file named `DESCRIPTION`, with each line following the pattern `link:key>: <value[]`. The required keys include:

      * Package

      * Version (for example, `0.1`)

      * Title

      * Description

      * Author

      * Maintainer (a name followed by an email address in angle brackets, for example, `Sample Maintainer <maintainer@example.com>`)

      * License

    * A file named `NAMESPACE` that describes the namespace of the package. If you don’t know what to put here, `exportPattern( "." )` works in many cases.
  </Tab>

  <Tab title="Python">
    See [Packaging Python Projects](https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives) for more details.

    In summary, each Python package requires:

    * A `setup.py` file. This must contain a `setup()` function (imported from `setuptools`), with arguments as described in [Packaging Python Projects](https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py).

    * A folder containing your Python modules and packages. Usually this is given the same name as the overall package.

    * Domino recommends that you also include a `README` file.
  </Tab>
</Tabs>
