Expand description
Transactional installation of predownloaded R package artifacts.
This crate deliberately does not download or resolve packages. Each call prepares or publishes one package and is safe to schedule concurrently with calls for other packages.
Structs§
- Archive
Limits - Resource and path limits for untrusted package archives.
- Binary
Artifact - A prebuilt R package archive.
- Cache
- A caller-owned immutable package cache.
- Cache
Entry - A validated immutable cache object.
- Cache
Key - A caller-defined source or binary cache identity.
- Cache
Lock Policy - Waiting policy for another process preparing the same cache key.
- Cancellation
Token - Per-child cancellation state. Cancelling does not affect other calls.
- Digest
- A SHA-256 digest.
- Expected
Package - Authoritative identity and compatibility information supplied upstream.
- Installed
Package - A package present in a target R library.
- Installer
- A reusable handle for a caller-owned package cache.
- Installer
Options - Operational policy shared by installer calls.
- Lock
Metadata - Metadata read from an R library lock directory.
- Package
Metadata - Metadata read from a validated installed package tree.
- Prepare
Request - Inputs required to prepare one immutable cache entry.
- Recovery
Plan - A proposed recovery action derived from lock metadata and filesystem state.
- Source
Artifact - A predownloaded R source package archive and its build options.
- Source
Options - Controls an
R CMD INSTALLsource build.
Enums§
- Artifact
- A package artifact to prepare.
- Error
- Structured installer failure.
- Install
Outcome - Result of publishing a package into an R library.
- Library
Entry - One entry found while scanning an R library.
- Lock
Policy - Locking policy used while modifying a target R library.
- Recovery
Action - Filesystem action selected for an interrupted transaction.
- Removal
Outcome - Result of transactionally removing a package.
Functions§
- recover_
package - Applies a recovery plan after the caller has established that its owner is no longer running. The token and filesystem-derived action are rechecked, but PID reuse makes abandonment impossible to prove portably.
- remove_
package - Transactionally removes
packagefrom an R library. - scan_
library - Inspects installed packages, locks, and incomplete entries in an R library.
Type Aliases§
- Result
- Result type used by this crate.