Storage Classes

All storage locations default to subdirectories of the Server.DataDir setting. The available classes of variable data are listed below:

Warning

Copy the Packages class in full when you move an installation to new storage. If the JSON index files under <DataDir>/packages/python are absent while the distribution files under <DataDir>/packages/python/shared are present, the scheduled packages eviction treats those distributions as orphaned and removes them, and they cannot be downloaded again. The schedule is controlled by the Server.PackagesEvictionSchedule setting, described in the EvictionPolicy section.

While it is not recommended, you can customize the storage directory for each storage class. For example:

/etc/rstudio-pm/rstudio-pm.gcfg
[FileStorage "cache"]
Location = /mnt/rstudio-pm-cache

[FileStorage "persistent"]
Location = /mnt/rstudio-pm-persistent

[FileStorage "metrics"]
Location = /mnt/rstudio-pm-metrics

[FileStorage "packages"]
Location = /mnt/rstudio-pm-packages

[FileStorage "cran"]
Location = /mnt/rstudio-pm-cran

[FileStorage "bioconductor"]
Location = /mnt/rstudio-pm-bioconductor

[FileStorage "pypi"]
Location = /mnt/rstudio-pm-pypi

[FileStorage "binaries"]
Location = /mnt/rstudio-pm-binaries

[FileStorage "vsx"]
Location = /mnt/rstudio-pm-vsx

If you customize any of the Package Manager storage directories, the rstudio-pm user must have permission to read, write, and create directories in each data directory.

Back to top