Skip to main content

Crate r_package_installer

Crate r_package_installer 

Source
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§

ArchiveLimits
Resource and path limits for untrusted package archives.
BinaryArtifact
A prebuilt R package archive.
Cache
A caller-owned immutable package cache.
CacheEntry
A validated immutable cache object.
CacheKey
A caller-defined source or binary cache identity.
CacheLockPolicy
Waiting policy for another process preparing the same cache key.
CancellationToken
Per-child cancellation state. Cancelling does not affect other calls.
Digest
A SHA-256 digest.
ExpectedPackage
Authoritative identity and compatibility information supplied upstream.
InstalledPackage
A package present in a target R library.
Installer
A reusable handle for a caller-owned package cache.
InstallerOptions
Operational policy shared by installer calls.
LockMetadata
Metadata read from an R library lock directory.
PackageMetadata
Metadata read from a validated installed package tree.
PrepareRequest
Inputs required to prepare one immutable cache entry.
RecoveryPlan
A proposed recovery action derived from lock metadata and filesystem state.
SourceArtifact
A predownloaded R source package archive and its build options.
SourceOptions
Controls an R CMD INSTALL source build.

Enums§

Artifact
A package artifact to prepare.
Error
Structured installer failure.
InstallOutcome
Result of publishing a package into an R library.
LibraryEntry
One entry found while scanning an R library.
LockPolicy
Locking policy used while modifying a target R library.
RecoveryAction
Filesystem action selected for an interrupted transaction.
RemovalOutcome
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 package from 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.