Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Programming model
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Pre-installed packages
  • Installing additional packages
  • packages.R
  • Manual delivery of dependencies
  1. Developing in R
  2. Managing dependencies

Building and managing R function dependencies

Written by
Yandex Cloud
Updated at December 12, 2023
  • Pre-installed packages
  • Installing additional packages
  • packages.R
  • Manual delivery of dependencies

Pre-installed packagesPre-installed packages

The R function runtime has the following set of pre-installed packages that can be used in the function code:
httr, logging, data.table, dplyr, paws, rjson, stringr, BiocManager, ggplot2, plotly, devtools, Rcpp, tidyr, lubridate, e1071, caret, mongolite, Rsamtools.

Installing additional packagesInstalling additional packages

When creating a new function version, Cloud Functions lets you install dependencies required for the function to run. To do this, place a file named packages.R that describes the installation process into the project root.

The service also supports manual delivery of dependencies along with the source code.

packages.Rpackages.R

This script is executed once when creating a function version.

Example packages.R package install:

install.packages("purrr", repo="http://cran.r-project.org")

Manual delivery of dependenciesManual 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 in Cloud Functions. You can view the dependency installation log using the link that appears in the list of operations.

Was the article helpful?

Previous
Programming model
Next
Request handler
© 2025 Direct Cursus Technology L.L.C.