Repository navigation
feat: load packages with compiled code, and reload earlier-loaded packages - #17
Merged
Merged
Conversation
…kages load_fast() builds a package with src/ with R CMD INSTALL into a new temporary library and loads it from there. It rebuilds when a file in DESCRIPTION, NAMESPACE, R/ or src/ changed. Paths in .Rbuildignore do not count. Before it loads a package, load_fast() reloads the packages that it loaded earlier in the session, if their files changed. So one load_fast() call in the package you work on picks up edits in its dependencies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
rs(finccam-engine PR 9311).load_fast()could not load compiled code, so every Rust change neededR CMD INSTALLand a restart of R.Changes
load_fast()loads a package withsrc/. When a file inDESCRIPTION,NAMESPACE,R/orsrc/changes, it builds the package withR CMD INSTALLinto a new temporary library and loads it from there. The old library stays loaded, so objects that point into it stay valid.load_fast()reloads the packages that it loaded earlier in the session, if their files changed. So afterload_fast("rs")once, a plainload_fast()in the engine also picks up Rust changes.🤖 Generated with Claude Code