Mouse-Imaging-Centre / RMINC

Statistics for MINC volumes: A library to integrate voxel-based statistics for MINC volumes into the R environment. Supports getting and writing of MINC volumes, running voxel-wise linear models, correlations, etc.; correcting for multiple comparisons using the False Discovery Rate, and more. With contributions from Jason Lerch, Chris Hammill, Jim Nikelski and Matthijs van Eede. Some additional information can be found here:
https://mouse-imaging-centre.github.io/RMINC
Other
23 stars 17 forks source link

Build warnings in rstudio project #226

Closed gdevenyi closed 6 years ago

gdevenyi commented 6 years ago

Working on effectsize adding, saw this in the build/install step:

** R
** inst
** byte-compile and prepare package for lazy loading
Note: wrong number of arguments to '!=' at civet.R:1709 
Note: wrong number of arguments to '!=' at civet.R:1776 
Note: wrong number of arguments to '!=' at civet.R:1841 
Note: wrong number of arguments to '==' at minc_vis3D.R:764 
Note: wrong number of arguments to '==' at minc_vis3D.R:27 
** help
*** installing help indices
** building package indices

I looked at the code, but its built with the %>% magics which I don't grok at all yet.

cfhammill commented 6 years ago

%>% is conceptually a lot like python . method chaining (although objects are passed immutably).

so x %>% mean %>% log is essentially log(mean(x)) or pseudo numpy x.mean().log()

Those notes are spurious, it happens when you pipe to those operators, e.g. 1 %>% `!=`(2) is mistakenly thinking != is being used as a unary operator.