domino logo
4.5
  • Overview
  • Domino Cloud
  • Get started
  • Work with data
  • Develop models
  • Scale out distributed computing
  • Deploy models
  • Publish Apps
  • Projects
  • Collaborate
  • Workspaces
  • Jobs
  • Environments
  • Executions
  • Launchers
  • Environment variables
  • Secure credential store
  • Organizations
  • Domino API
  • Domino CLI
  • Troubleshooting
  • Get help
  • Additional resources
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
>
User guide
>
Projects
>
Project organization
>
Domino File System Projects
>
Manage Project files
>
Export files as Python or R package

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.

  2. From Code Package, select the language.

    screen shot 2016 02 04 at 4.33.44 PM

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

See the official manual 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.

Domino Data Lab
Knowledge Base
Data Science Blog
Training
Copyright © 2023 Domino Data Lab. All rights reserved.