Version 1.2.0 (current)
To address the CRAN
issues (2024-11-05)
\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.
Please unwrap the examples if they are executable in < 5 sec, or replace dontrun{} with \donttest{}.
-> create_group.Rd; freesurfer_brain.Rd; geom_freemesh.Rd
Thanks, currently there are three \dontrun{}
because these examples do require users to
- download additional data and software that are not licensed under, nor built into this package.
- run the code in interactive sessions
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.
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.
e.g.:
...
oldpar <- par(no.readonly = TRUE) # code line i
on.exit(par(oldpar)) # code line i + 1
...
par(mfrow=c(2,2)) # somewhere after
...
e.g.: -> R/class_electrode_proto.R; R/ext_media.R; R/plot_volume-slices.R
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.
Thanks, I have added on.exit
to all functions that change options
and par
.
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.
oldpar <- graphics::par(no.readonly = TRUE)
on.exit({ graphics::par(oldpar) })
To address the previous CRAN
issues (2024-11-01)
URL: https://cran.r-project.org/web/packages/threeBrain/index.html
Package ‘threeBrain’ was removed from the CRAN repository.
...
Archived on 2024-02-18 as requires archived package 'ravetools'. , Also, claims to be the copyright holder of the work of other authors and contributors.
...
Package ravetools
has been updated and on CRAN
now. The dependency is cleared.
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
.
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.
Self check: 0 errors | 0 warnings | 1 note
❯ checking installed package size ... NOTE
installed size is 7.3Mb
sub-directories of 1Mb or more:
R 2.0Mb
threeBrainJS 2.9Mb
I (tried, but) can't reduce the size anymore from JavaScript
engine and package functions.
Version 1.0.2 (passed)
Version 1.0.1 (passed)
Version 1.0.0 (passed)
Version 0.2.9 (passed)
Version 0.2.7 (passed)
Version 0.2.6 (passed)
Version 0.2.5 (passed)
Version 0.2.4 (passed)
Version 0.2.3 (passed)
Version 0.2.2 (passed)
Skipped a version
Version 0.2.0 (passed)
Version 0.1.9 (passed)
Version 0.1.8 (passed)
Version 0.1.7 (passed)
Version 0.1.6 (passed)
Version 0.1.6 (passed)
Version 0.1.5 (passed)
Version 0.1.4 (passed)
Version 0.1.3 (passed)
Version 0.1.2 (passed)
Version 0.1.2
Reason:
Thanks, please replace \dontrun{} by \donttest{} or unwap the examples
if they can be executed in less than 5 sec per Rd-file.
You have examples for unexported functions which cannot run in this way.
Please either add threeBrain::: to the function calls in the examples,
omit these examples or export these functions.
Please fix and resubmit.
- exported internal functions needed by examples
- changed dontrun to donttest
Version 0.1.2
Update JavaScript library, added scatter plot methods. Removed files in inst/
that trigger warnings (like installed.packages
).
Reason:
Package has a VignetteBuilder field but no prebuilt vignette index.
I removed old vignette causing this note. Removed VignetteBuilder field in DESCRIPTION.
Version 0.1.0
- Passed cran check but rejected from manual checks
Reason:
Thanks, please do not use installed.packages(). See help page of
installed.packages():
"This can be slow when thousands of packages are installed, so do not
use this to find out if a named package is installed (use system.file or
find.package) nor to find out if a package is usable (call require and
check the return value) nor to find details of a small number of
packages (use packageDescription). It needs to read several files per
installed package, which will be slow on Windows and on some
network-mounted file systems."
Please do not change waning options (options(warn=-1)) in your functions.
Please add examples in your Rd-files.
Please fix and resubmit.
- There's a file
AFNIio.R
ininst/
folder that triggers these warnings.threeBrain
doesn't need this file to function properly. However, it's not recommended to change the script due to compatibility issues. - Also this file has lots of syntax mistakes. I plan to write my own afni readers in the later versions
AFNIio.R
has been removed.- Examples added to S3 functions
create_group
,geom_freemesh
andgeom_sphere
. At current stage, not many geometry types are supported. Plan to addplane
andparticle
system later on in the next big version, but these geometries are totally enough for iEEG/ECoG analysis.
Version 0.1.0
- Self check has one note:
Possibly mis-spelled words in DESCRIPTION
- Passed cran check but rejected by manual checks
Reason:
The Description field should not start with the package name,
'This package' or similar.
Please also single quote software names such as 'FreeSurfer'.
Re-wrote DESCRIPTION, added single quotes to software names