You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/CLAUDE.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,17 @@
6
6
# To run code
7
7
Rscript -e "devtools::load_all(); code"
8
8
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
+
"
11
20
12
21
# To run all tests for files starting with {name}
13
22
Rscript -e "devtools::test(filter = '^{name}')"
@@ -36,11 +45,11 @@ air format .
36
45
* Always run `air format .` after generating code
37
46
* Use the base pipe operator (`|>`) not the magrittr pipe (`%>%`)
38
47
* 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() {...}`
40
49
41
50
### Testing
42
51
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`.
44
53
- All new code should have an accompanying test.
45
54
- If there are existing tests, place new tests next to similar existing tests.
46
55
- Strive to keep your tests minimal with few comments.
@@ -50,7 +59,7 @@ air format .
50
59
- Every user-facing function should be exported and have roxygen2 documentation.
51
60
- Wrap roxygen comments at 80 characters.
52
61
- 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`.
54
63
- Always re-document the package after changing a roxygen2 comment.
55
64
- Use `pkgdown::check_pkgdown()` to check that all topics are included in the reference index.
56
65
@@ -73,9 +82,9 @@ air format .
73
82
74
83
### Proofreading
75
84
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.
77
86
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.
79
88
80
89
Fix spelling, grammar, and other minor problems without asking the user. Label any unclear, confusing, or ambiguous sentences with a FIXME comment.
0 commit comments