Building and managing dependencies
The runtime has the following set of pre-installed packages that can be used from the function code:
Installing additional packages
When creating a new function version, Cloud Functions lets you install dependencies required for the function to run. To do this, upload a file named
packages.R to the project root with a description of the package installation process.
The service also supports manual delivery of dependencies along with the source code.
This script is executed once when creating a function version.
Example of installing a package via
Manual delivery of dependencies
To configure dependencies manually, place the compiled packages in the
usr/library/ subdirectory of the project archive.
The process of installing dependencies has resource and execution time limits. For more information, see Quotas and limits. You can view the dependency installation log using the link that appears in the list of operations.