-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn the
R CMD check
appendix into an online-only thing
Two main pieces to this: * Remove that file from O'Reilly's notion of the "manifest" * Replace crossrefs from other chapters with a normal URL. I've retained crossrefs within the chapter, but I think those should be OK. Also removed vestigial section labels from `R-CMD-check.Rmd`. No good could possibly come from their existence.
- Loading branch information
Showing
5 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// The root book file | ||
const rootFile = "_book/book-asciidoc/R-Packages--2e-.adoc"; | ||
|
||
// List of `lines` to replace in final file | ||
const excludeFromFinal = [ | ||
"[appendix]", | ||
"include::R-CMD-check.adoc[]" | ||
]; | ||
|
||
// Read and replace | ||
let contents = Deno.readTextFileSync(rootFile); | ||
excludeFromFinal.forEach((exclude) => { | ||
contents = contents.replace(`${exclude}\n`, ""); | ||
}) | ||
|
||
// Write updated file | ||
Deno.writeTextFileSync(rootFile, contents); |
This file contains 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
This file contains 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