Skip to content

Commit 0b3b78f

Browse files
committed
cpp11 specific tweaks
1 parent 8dd7e5a commit 0b3b78f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.claude/CLAUDE.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
# To run code
77
Rscript -e "devtools::load_all(); code"
88
9-
# To run all tests
10-
Rscript -e "devtools::test()"
9+
# To run R specific tests
10+
Rscript -e "
11+
devtools::test()
12+
"
13+
14+
# To run C++ specific tests
15+
Rscript -e "
16+
devtools::install()
17+
devtools::clean_dll('./cpp11test')
18+
devtools::test('./cpp11test')
19+
"
1120
1221
# To run all tests for files starting with {name}
1322
Rscript -e "devtools::test(filter = '^{name}')"
@@ -36,11 +45,11 @@ air format .
3645
* Always run `air format .` after generating code
3746
* Use the base pipe operator (`|>`) not the magrittr pipe (`%>%`)
3847
* Don't use `_$x` or `_$[["x"]]` since this package must work on R 4.1.
39-
* Use `\() ...` for single-line anonymous functions. For all other cases, use `function() {...}`
48+
* Use `\() ...` for single-line anonymous functions. For all other cases, use `function() {...}`
4049

4150
### Testing
4251

43-
- Tests for `R/{name}.R` go in `tests/testthat/test-{name}.R`.
52+
- Tests for `R/{name}.R` go in `tests/testthat/test-{name}.R`.
4453
- All new code should have an accompanying test.
4554
- If there are existing tests, place new tests next to similar existing tests.
4655
- Strive to keep your tests minimal with few comments.
@@ -50,7 +59,7 @@ air format .
5059
- Every user-facing function should be exported and have roxygen2 documentation.
5160
- Wrap roxygen comments at 80 characters.
5261
- Internal functions should not have roxygen documentation.
53-
- Whenever you add a new (non-internal) documentation topic, also add the topic to `_pkgdown.yml`.
62+
- Whenever you add a new (non-internal) documentation topic, also add the topic to `_pkgdown.yml`.
5463
- Always re-document the package after changing a roxygen2 comment.
5564
- Use `pkgdown::check_pkgdown()` to check that all topics are included in the reference index.
5665

@@ -73,9 +82,9 @@ air format .
7382

7483
### Proofreading
7584

76-
If the user asks you to proofread a file, act as an expert proofreader and editor with a deep understanding of clear, engaging, and well-structured writing.
85+
If the user asks you to proofread a file, act as an expert proofreader and editor with a deep understanding of clear, engaging, and well-structured writing.
7786

78-
Work paragraph by paragraph, always starting by making a TODO list that includes individual items for each top-level heading.
87+
Work paragraph by paragraph, always starting by making a TODO list that includes individual items for each top-level heading.
7988

8089
Fix spelling, grammar, and other minor problems without asking the user. Label any unclear, confusing, or ambiguous sentences with a FIXME comment.
8190

0 commit comments

Comments
 (0)