Conversation
0.2.0 writes the generated <module>2.Rmd to a staging directory under the book
root instead of into each module's own directory, so _bookdown.yml lists them
from there.
The module directories are git submodules, so before this a build wrote into 10
separate repositories, a failed build left a file in each, and every module repo
carried a .gitignore line to hide it. Each generated file also embedded an
absolute host path.
Cleanup is now removing one directory.
renv.lock still pins SpaDES.docs 0.0.1.9002; it needs
renv::install("PredictiveEcology/SpaDES.docs@v0.2.0", lock = TRUE, prompt = FALSE),
not run here because it writes to the shared project library. This branch's R
4.6.1 already satisfies 0.2.0's R >= 4.3 requirement.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Collaborator
Author
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.
Draft — the manual has not been tackled on this branch yet. Groundwork.
SpaDES.docs 0.2.0 writes the generated
<module>2.Rmdto a staging directory under the book root (_manual_rmds) instead of into each module's own directory, so_bookdown.ymlhas to list them from there.Why the change was made upstream
The module directories are git submodules. Before this, a build wrote into 10 separate repositories, a failed build left a
<module>2.Rmdin each one, and every module repo carries a.gitignoreline to hide it. Each generated file also embedded an absolute host path.There were 11 such files sitting in this repo's
modules/when the work started; they have been cleared.This PR
manual/_bookdown.yml../modules/<M>/<M>2.Rmd→_manual_rmds/<M>2.Rmdmanual/.gitignore_manual_rmds/manual/build.Runlink("_manual_rmds", recursive = TRUE)DESCRIPTIONSpaDES.docs (== 0.0.1.9002)→(== 0.2.0); Remotes →@v0.2.0Verified upstream that this does not change the rendered book: the same chapters rendered from both locations produce byte-identical HTML, including relative images, cross-references and citations.
This branch makes it simpler than it would have been on
developmentdevelopmentpinsr-version: 4.2.3, and SpaDES.docs 0.2.0 needs R ≥ 4.3 — so migrating there would have required an R bump that invalidates the renv library. This branch is already on R 4.6.1, so that problem does not arise.Still needs you
renv.lockpinsSpaDES.docs 0.0.1.9002at757c320. Updating it meanswhich writes to the shared project library, so it is not done here. This PR and that install must land together — 0.0.1.9002 writes chapters where the new
_bookdown.ymlno longer looks, and 0.2.0 writes where the old one no longer looks.Also in 0.2.0
Fixes this book benefits from:
_bookdown.ymlis parsed as YAML rather than by indentation; a module with no setup chunk no longer aborts the whole book; and a(ref:key)used mid-paragraph is no longer mistaken for a duplicate definition and deleted —Biomass_core.Rmd:612has exactly one of those.🤖 Generated with Claude Code