Changelog
Source:NEWS.md
tarchives (development version)
-
tar_check_archive_pipeline()andtar_check_archive_name()validate a pipeline or target name against the ones available in a package, erroring with a “did you mean” suggestion when the value doesn’t match. -
tar_get_archive()(experimental) builds an archived pipeline (if outdated) and reads a target’s value in one call, skipping the build on repeat calls for the same installed package version within a session. -
tar_make_archive()(and thereforetar_get_archive()andtar_target_archive()) now reports which package and pipeline failed to build, with the original error attached. When the build fails because a package isn’t installed, it explains that packages needed only for building are often suggested dependencies and how to install them (#17). -
tar_make_archive()(and thereforetar_get_archive()andtar_target_archive()) now locks the archived store while building, so R processes that request the same archive at the same time (e.g. parallel workers) build it one at a time instead of corrupting the store. tarchives now imports filelock (#16).
tarchives 0.2.0
CRAN release: 2026-07-12
- The archive functions now validate their
packageandpipelinearguments and report a clear error when the package or pipeline cannot be found. - tarchives no longer depends on usethis.
-
tar_archive_pipelines()lists the pipelines bundled in a package. -
tar_archive_pipelines(),tar_archive_script(),tar_make_archive(),tar_manifest_archive(), andtar_source_archive()now correctly resolvepackagewhen it is loaded withpkgload::load_all()(e.g. during interactive package development), instead of silently falling back to the installed copy. -
tar_destroy_archive()removes the cached store of an archived pipeline. -
tar_load_archive()loads archived targets into an environment. -
tar_manifest_archive()lists the targets defined in an archived pipeline. -
tar_meta_archive()reads the metadata of an archived pipeline’s store. -
tar_read_archive(),tar_load_archive(), andtar_meta_archive()now fail with an informative error when the archived store has not been built yet. -
tar_target_archive()now builds and reads the archive when the target runs rather than when the target script is sourced, so inspecting a pipeline withtar_manifest()ortar_visnetwork()no longer triggers a build. The target tracks the installed version of the package, so it refreshes the data when a new version of the package providing the archive is installed and is skipped otherwise. - Tests no longer leave files in the user cache directory (
tools::R_user_dir("tarchives", "cache")) duringR CMD check, which caused the package to be archived on CRAN.
tarchives 0.1.1
CRAN release: 2025-06-22
- Added
name_archiveargument totar_target_archive()andtar_target_archive_raw()to specify the archived target name separately from the target name. - Addressed the CRAN Package Check errors.