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: cran-comments.md
+45-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,49 @@
3
3
## 2024-11-01
4
4
**Version 1.2.0 (current)**
5
5
6
-
To address the `CRAN` issues:
6
+
To address the `CRAN` issues (2024-11-05)
7
+
8
+
```
9
+
\dontrun{} should only be used if the example really cannot be executed (e.g. because of missing additional software, missing API keys, ...) by the user. That's why wrapping examples in \dontrun{} adds the comment ("# Not run:") as a warning for the user. Does not seem necessary. Please replace \dontrun with \donttest.
10
+
Please unwrap the examples if they are executable in < 5 sec, or replace dontrun{} with \donttest{}.
Thanks, currently there are three `\dontrun{}` because these examples do require users to
15
+
16
+
* download additional data and software that are not licensed under, nor built into this package.
17
+
* run the code in interactive sessions
18
+
19
+
I have also tried my best to provide toy-examples if possible. This package originally has lots of `dontrun`s and I have converted most of them to `donttest` back in version `0.1.2` (see comments down below). I believe these three `dontrun` cases have been left since then.
20
+
21
+
22
+
```
23
+
Please make sure that you do not change the user's options, par or working directory. If you really have to do so within functions, please ensure with an *immediate* call of on.exit() that the settings are reset when the function is exited.
If you're not familiar with the function, please check ?on.exit. This function makes it possible to restore options before exiting a function even if the function breaks. Therefore it needs to be called immediately after the option change within a function.
33
+
```
34
+
35
+
Thanks, I have added `on.exit` to all functions that change `options` and `par`.
36
+
37
+
Just in case you miss it, there are multiple lines changing `par` in the function `plot_slices` (`R/plot_volume-slices.R`), and I make sure the `par` remain unchanged via the following two lines at the very beginning.
38
+
39
+
```r
40
+
oldpar<-graphics::par(no.readonly=TRUE)
41
+
on.exit({ graphics::par(oldpar) })
42
+
```
43
+
44
+
45
+
46
+
47
+
48
+
To address the previous `CRAN` issues (2024-11-01)
@@ -22,7 +64,7 @@ Package `ravetools` has been updated and on `CRAN` now. The dependency is cleare
22
64
23
65
This package (`threeBrain`) is developed out of fun and used in my thesis and later projects. I am the solo developer in this project (wrote 99.99% code). Other contributors are explicitly claimed in the `DESCRIPTION`.
24
66
25
-
There is one external `JavaScript` library `three-brain-js`. The code is located at `inst/threeBrainJS`. I am also the main maintainer and contributor of that project. The distribution included is a compiled bundle that is released under `MPL-2.0` as a whole. As required, the license file has been included when `mpn` compiles the bundles, see `inst/threeBrainJS/dist`. There might some other external programs, but they can't claim the authorship of the release bundle. Their corresponding license files are included too.
67
+
There is one external `JavaScript` library `three-brain-js`. The code is located at `inst/threeBrainJS`. I am also the main maintainer and contributor of that project. The distribution included is a compiled bundle that is released under `MPL-2.0` as a whole. As required, the license file has been included when `npm` compiles the bundles, see `inst/threeBrainJS/dist`. There might some other external programs, but they can't claim the authorship of the release bundle. Their corresponding license files are included too.
0 commit comments