_storage
Runtime directory operations. Disk only, no R, no config.
Functions¶
get_os()
¶
Returns 'linux', 'macos', or 'windows'.
get_runtime_base_dir()
¶
Returns ~/.brmspy/runtime/, creating if needed.
get_runtime_path(fingerprint, version, n=None, allow_existing=True)
¶
Returns ~/.brmspy/runtime/{fingerprint}-{version}/.
Source code in brmspy/_runtime/_storage.py
is_runtime_dir(path)
¶
Check if path has valid structure (manifest.json, Rlib/, cmdstan/).
list_installed_runtimes()
¶
List all installed runtime directories.
Source code in brmspy/_runtime/_storage.py
find_runtime_by_fingerprint(fingerprint)
¶
Find newest installed runtime matching fingerprint.
Source code in brmspy/_runtime/_storage.py
read_stored_hash(path)
¶
Read hash file from runtime directory.
write_stored_hash(path, hash_value)
¶
install_from_archive(archive, fingerprint, version)
¶
Extract archive to runtime directory. Returns path to installed runtime.
Source code in brmspy/_runtime/_storage.py
install_from_directory(source, fingerprint, version)
¶
Copy/move directory to runtime location. Returns path to installed runtime.