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: .dev/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,24 +7,24 @@
7
7
Developer helper script providing `cc` function. If one starts R session in `data.table` project root directory `.dev/cc.R` file should be automatically sourced (due to local `.Rprofile` file) making `cc()` (and `dd()`) function available straightaway.
Use `cc` to re-compile all C sources and attach all `data.table` R functions (including non-exported ones).
14
-
By default `cc(test=TRUE)` will also run main test script `"tests.Rraw"`, so one may want to use `cc(F)`to re-compile and attach newly modified code but not run any test script. As of now running main tests with `cc()` requires to uninstall package to avoid S4 classes namespace issues (see [#3808](https://github.com/Rdatatable/data.table/issues/3808)).
13
+
Use `cc()` to re-compile all C sources and attach all `data.table` R functions (including non-exported ones).
14
+
One might want to re-compile and run main test script `"tests.Rraw"` automatically, then `cc(test=TRUE)`should be used. As of now running main tests with `cc(T)` requires to uninstall package to avoid S4 classes namespace issues (see [#3808](https://github.com/Rdatatable/data.table/issues/3808)).
15
15
When working on a bigger feature, one may want to put new unit tests into dedicated test file, then `cc("feature.Rraw")` can be used to run only chosen test script.
16
16
17
17
Usage of `cc()` from `R`:
18
18
```r
19
-
#run test
19
+
#re-compile and attach
20
20
cc()
21
-
# change some files, run test
21
+
# change some files, re-compile and re-attach
22
22
cc()
23
-
# compile, reload but not test
24
-
cc(F)
25
-
# clean, compile, reload but not test
23
+
# compile, reload and run main test script
24
+
cc(T)
25
+
# clean, compile, reload
26
26
cc(F, T)
27
-
# clean, compile using specific compiler version, reload but not test
27
+
# clean, compile using specific compiler version, reload
0 commit comments