-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move quarto render into cleanup script (#274)
fix #272 move `quarto render` into R CMD BUILD: ``` ❯ R CMD BUILD . * checking for file ‘./DESCRIPTION’ ... OK * preparing ‘tlg.catalog.pkg’: * checking DESCRIPTION meta-information ... OK * running ‘cleanup’ <<<<------ HERE! * checking for LF line-endings in source and make files and shell scripts * checking for empty or unneeded directories * building ‘tlg.catalog.pkg_0.1.0.9029.tar.gz’ ``` After `quarto render` we remove the symlink to the book. As a result, we have refreshed files for snapshot tests and also we don't have a book files that R CMD CHECK complains about. --------- Co-authored-by: Marcin <[email protected]>
- Loading branch information
Showing
9 changed files
with
40 additions
and
10 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
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,20 @@ | ||
#!/bin/sh | ||
|
||
# See https://github.com/insightsengineering/tlg-catalog/issues/272 | ||
# This script addresses R CMD CHECK notes caused by the tests/testthat/_book symlink. | ||
# It renders the book (which saves the output for snapshot testing) and removes the symlink. | ||
# Executed during the R CMD BUILD "running ‘cleanup’" step, it ensures a smaller package tarball without the symlink and eliminates R CMD CHECK notes. | ||
|
||
TLG_CATALOG_PKG_TEST_DATA_PATH=$(realpath "./tests/testthat/_data") | ||
export TLG_CATALOG_PKG_TEST_DATA_PATH | ||
if [ "$TLG_CATALOG_PKG_BUILD_RENDER" = "TRUE" ]; then | ||
echo "Rendering Quarto book..." | ||
quarto render tests/testthat/_book/ --no-cache | ||
echo "Quarto book rendered." | ||
else | ||
echo "Skipping Quarto book rendering." | ||
fi | ||
|
||
rm -rf tests/testthat/_book | ||
|
||
exit 0 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
* | ||
!.gitignore | ||
!.rbuildkeep | ||
!README.md |
Empty file.
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,3 @@ | ||
# README | ||
|
||
This is an empty file to keep parent dir not empty. |
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