diff --git a/copier.yaml b/copier.yaml index 19ed1e2..71d699a 100644 --- a/copier.yaml +++ b/copier.yaml @@ -75,7 +75,7 @@ github_board_number: type: str help: "What is the GitHub project board number to add issues and PRs to?" default: 12 - validator: | + validator: >- {% if github_board_number and not github_board_number.isdigit() %} The board number must be an integer. {% endif %} diff --git a/justfile b/justfile index c6fcecf..1d84367 100644 --- a/justfile +++ b/justfile @@ -51,6 +51,12 @@ check-spelling: test type="r": sh ./test-template.sh {{ type }} +# Test the template through the manual, question-based approach +test-manual: + mkdir -p _temp/manual/ + rm -rf _temp/manual/test-template + uvx copier copy --trust -r HEAD . _temp/manual/test-template + # Build the website using Quarto build-website: uvx --from quarto quarto render diff --git a/template/{{ github_repo }}.Rproj b/template/{{ github_repo }}.Rproj index 32ea086..8b8ffb4 100644 --- a/template/{{ github_repo }}.Rproj +++ b/template/{{ github_repo }}.Rproj @@ -10,7 +10,7 @@ UseSpacesForTab: Yes NumSpacesForTab: 2 Encoding: UTF-8 -RnwWeave: Sweave +RnwWeave: knitr LaTeX: pdfLaTeX AutoAppendNewline: Yes