Back to Multiple platform build/check report for BioC 3.15
ABCDEFGHIJKLMNO[P]QRSTUVWXYZ

This page was generated on 2022-03-18 11:08:20 -0400 (Fri, 18 Mar 2022).

HostnameOSArch (*)R versionInstalled pkgs
nebbiolo1Linux (Ubuntu 20.04.4 LTS)x86_64R Under development (unstable) (2022-02-17 r81757) -- "Unsuffered Consequences" 4334
riesling1Windows Server 2019 Standardx64R Under development (unstable) (2021-11-21 r81221) -- "Unsuffered Consequences" 4097
palomino3Windows Server 2022 Datacenterx64R Under development (unstable) (2022-02-17 r81757 ucrt) -- "Unsuffered Consequences" 4083
merida1macOS 10.14.6 Mojavex86_64R Under development (unstable) (2022-03-02 r81842) -- "Unsuffered Consequences" 4134
Click on any hostname to see more info about the system (e.g. compilers)      (*) as reported by 'uname -p', except on Windows and Mac OS X

CHECK results for preprocessCore on riesling1


To the developers/maintainers of the preprocessCore package:
- Please allow up to 24 hours (and sometimes 48 hours) for your latest push to git@git.bioconductor.org:packages/preprocessCore.git to
reflect on this report. See How and When does the builder pull? When will my changes propagate? here for more information.
- Make sure to use the following settings in order to reproduce any error or warning you see on this page.

raw results

Package 1461/2090HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
preprocessCore 1.57.0  (landing page)
Ben Bolstad
Snapshot Date: 2022-03-17 13:55:23 -0400 (Thu, 17 Mar 2022)
git_url: https://git.bioconductor.org/packages/preprocessCore
git_branch: master
git_last_commit: b60890f
git_last_commit_date: 2021-10-26 11:45:45 -0400 (Tue, 26 Oct 2021)
nebbiolo1Linux (Ubuntu 20.04.4 LTS) / x86_64  OK    OK    OK  UNNEEDED, same version is already published
riesling1Windows Server 2019 Standard / x64  OK    OK    OK    OK  
palomino3Windows Server 2022 Datacenter / x64  OK    OK    OK    OK  UNNEEDED, same version is already published
merida1macOS 10.14.6 Mojave / x86_64  OK    OK    OK    OK  UNNEEDED, same version is already published

Summary

Package: preprocessCore
Version: 1.57.0
Command: D:\biocbuild\bbs-3.15-bioc\R\bin\R.exe CMD check --no-multiarch --install=check:preprocessCore.install-out.txt --library=D:\biocbuild\bbs-3.15-bioc\R\library --no-vignettes --timings preprocessCore_1.57.0.tar.gz
StartedAt: 2022-03-17 19:55:06 -0400 (Thu, 17 Mar 2022)
EndedAt: 2022-03-17 19:55:35 -0400 (Thu, 17 Mar 2022)
EllapsedTime: 29.2 seconds
RetCode: 0
Status:   OK  
CheckDir: preprocessCore.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   D:\biocbuild\bbs-3.15-bioc\R\bin\R.exe CMD check --no-multiarch --install=check:preprocessCore.install-out.txt --library=D:\biocbuild\bbs-3.15-bioc\R\library --no-vignettes --timings preprocessCore_1.57.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory 'D:/biocbuild/bbs-3.15-bioc/meat/preprocessCore.Rcheck'
* using R Under development (unstable) (2021-11-21 r81221)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* using option '--no-vignettes'
* checking for file 'preprocessCore/DESCRIPTION' ... OK
* this is package 'preprocessCore' version '1.57.0'
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'preprocessCore' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... NOTE
Found a 'configure.in' file: 'configure.ac' has long been preferred.
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in shell scripts ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking compiled code ... NOTE
Note: information on .o files for x64 is not available
File 'D:/biocbuild/bbs-3.15-bioc/R/library/preprocessCore/libs/x64/preprocessCore.dll':
  Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs. The detected symbols are linked into the code but
might come from libraries and not actually be called.

See 'Writing portable packages' in the 'Writing R Extensions' manual.
* checking examples ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
  Running 'PLMdtest.R'
  Running 'qnormtest.R'
 OK
* checking PDF version of manual ... OK
* DONE

Status: 2 NOTEs
See
  'D:/biocbuild/bbs-3.15-bioc/meat/preprocessCore.Rcheck/00check.log'
for details.



Installation output

preprocessCore.Rcheck/00install.out

##############################################################################
##############################################################################
###
### Running command:
###
###   D:\biocbuild\bbs-3.15-bioc\R\bin\R.exe CMD INSTALL preprocessCore
###
##############################################################################
##############################################################################


* installing to library 'D:/biocbuild/bbs-3.15-bioc/R/library'
* installing *source* package 'preprocessCore' ...
** using staged installation

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_colSummarize.c -o R_colSummarize.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_plmd_interfaces.c -o R_plmd_interfaces.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_plmr_interfaces.c -o R_plmr_interfaces.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_rlm_interfaces.c -o R_rlm_interfaces.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_subColSummarize.c -o R_subColSummarize.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o
R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_medianpolish':
R_subrcModel_interfaces.c:207:11: warning: unused variable 'se' [-Wunused-variable]
   double *se;
           ^~
R_subrcModel_interfaces.c:206:11: warning: unused variable 'weights' [-Wunused-variable]
   double *weights;
           ^~~~~~~
R_subrcModel_interfaces.c:165:30: warning: unused variable 'buffer2' [-Wunused-variable]
   double *results, *buffer, *buffer2;
                              ^~~~~~~
R_subrcModel_interfaces.c:165:21: warning: unused variable 'buffer' [-Wunused-variable]
   double *results, *buffer, *buffer2;
                     ^~~~~~
R_subrcModel_interfaces.c:165:11: warning: unused variable 'results' [-Wunused-variable]
   double *results, *buffer, *buffer2;
           ^~~~~~~
R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_plm':
R_subrcModel_interfaces.c:532:10: warning: unused variable 'scale' [-Wunused-variable]
   double scale=-1.0;
          ^~~~~
R_subrcModel_interfaces.c:485:30: warning: unused variable 'buffer2' [-Wunused-variable]
   double *results, *buffer, *buffer2;
                              ^~~~~~~
R_subrcModel_interfaces.c:485:21: warning: unused variable 'buffer' [-Wunused-variable]
   double *results, *buffer, *buffer2;
                     ^~~~~~
R_subrcModel_interfaces.c:485:11: warning: unused variable 'results' [-Wunused-variable]
   double *results, *buffer, *buffer2;
           ^~~~~~~
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c avg.c -o avg.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c avg_log.c -o avg_log.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c biweight.c -o biweight.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c init_package.c -o init_package.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c lm.c -o lm.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c log_avg.c -o log_avg.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c log_median.c -o log_median.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c matrix_functions.c -o matrix_functions.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c median.c -o median.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c median_log.c -o median_log.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c medianpolish.c -o medianpolish.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c plmd.c -o plmd.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c plmr.c -o plmr.o
plmr.c:279:13: warning: 'XTWX_R_inv' defined but not used [-Wunused-function]
 static void XTWX_R_inv(int *rows, int *cols, double *xtwx){
             ^~~~~~~~~~
plmr.c:152:13: warning: 'XTWX_R' defined but not used [-Wunused-function]
 static void XTWX_R(int *rows, int *cols, double *out_weights, double *xtwx){
             ^~~~~~
plmr.c:82:13: warning: 'XTWY_R' defined but not used [-Wunused-function]
 static void XTWY_R(int *rows, int *cols, double *out_weights, double *y,double *xtwy){
             ^~~~~~
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c psi_fns.c -o psi_fns.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c qnorm.c -o qnorm.o
qnorm.c: In function 'qnorm_c_determine_target_l':
qnorm.c:1908:7: warning: unused variable 'non_na' [-Wunused-variable]
   int non_na;
       ^~~~~~
qnorm.c:1903:12: warning: unused variable 'j' [-Wunused-variable]
   size_t i,j,row_mean_ind;
            ^
qnorm.c: In function 'qnorm_c_determine_target_via_subset_l':
qnorm.c:2507:7: warning: unused variable 'non_na' [-Wunused-variable]
   int non_na;
       ^~~~~~
qnorm.c:2502:12: warning: unused variable 'j' [-Wunused-variable]
   size_t i,j,row_mean_ind;
            ^
qnorm.c: In function 'using_target_via_subset_part1':
qnorm.c:2723:14: warning: variable 'ind' set but not used [-Wunused-but-set-variable]
   size_t i,j,ind,target_ind;
              ^~~
qnorm.c: In function 'using_target_via_subset_part2':
qnorm.c:2822:11: warning: unused variable 'datvec' [-Wunused-variable]
   double *datvec;
           ^~~~~~
qnorm.c:2821:11: warning: unused variable 'sample_percentiles' [-Wunused-variable]
   double *sample_percentiles;
           ^~~~~~~~~~~~~~~~~~
qnorm.c: In function 'using_target_via_subset':
qnorm.c:2971:11: warning: unused variable 'datvec' [-Wunused-variable]
   double *datvec;
           ^~~~~~
qnorm.c:2970:11: warning: unused variable 'sample_percentiles' [-Wunused-variable]
   double *sample_percentiles;
           ^~~~~~~~~~~~~~~~~~
qnorm.c:2966:7: warning: unused variable 'non_na' [-Wunused-variable]
   int non_na = 0;
       ^~~~~~
qnorm.c:2965:7: warning: unused variable 'targetnon_na' [-Wunused-variable]
   int targetnon_na = targetrows;
       ^~~~~~~~~~~~
qnorm.c:2963:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable]
   double target_ind_double,target_ind_double_floor;
                            ^~~~~~~~~~~~~~~~~~~~~~~
qnorm.c:2963:10: warning: unused variable 'target_ind_double' [-Wunused-variable]
   double target_ind_double,target_ind_double_floor;
          ^~~~~~~~~~~~~~~~~
qnorm.c:2962:10: warning: unused variable 'samplepercentile' [-Wunused-variable]
   double samplepercentile;
          ^~~~~~~~~~~~~~~~
qnorm.c:2961:11: warning: unused variable 'ranks' [-Wunused-variable]
   double *ranks = (double *)Calloc((rows),double);
           ^~~~~
qnorm.c:2959:11: warning: unused variable 'row_mean' [-Wunused-variable]
   double *row_mean = target;
           ^~~~~~~~
qnorm.c:2957:14: warning: unused variable 'dimat' [-Wunused-variable]
   dataitem **dimat;
              ^~~~~
qnorm.c:2955:18: warning: unused variable 'target_ind' [-Wunused-variable]
   size_t i,j,ind,target_ind;
                  ^~~~~~~~~~
qnorm.c:2955:14: warning: unused variable 'ind' [-Wunused-variable]
   size_t i,j,ind,target_ind;
              ^~~
qnorm.c:2955:12: warning: unused variable 'j' [-Wunused-variable]
   size_t i,j,ind,target_ind;
            ^
qnorm.c: In function 'R_qnorm_using_target':
qnorm.c:2113:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized]
   qnorm_c_using_target_l(Xptr, rows, cols ,targetptr, target_rows);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qnorm.c: In function 'R_qnorm_using_target_via_subset':
qnorm.c:3240:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized]
   qnorm_c_using_target_via_subset_l(Xptr, rows, cols, subsetptr, targetptr, target_rows);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c rlm.c -o rlm.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c rlm_anova.c -o rlm_anova.o
rlm_anova.c: In function 'rlm_fit_anova_given_probe_effects_engine':
rlm_anova.c:1235:10: warning: unused variable 'endprobe' [-Wunused-variable]
   double endprobe;
          ^~~~~~~~
rlm_anova.c: In function 'rlm_compute_se_anova_given_probe_effects':
rlm_anova.c:1426:19: warning: unused variable 'varderivpsi' [-Wunused-variable]
   double vs=0.0,m,varderivpsi=0.0;
                   ^~~~~~~~~~~
rlm_anova.c:1426:17: warning: unused variable 'm' [-Wunused-variable]
   double vs=0.0,m,varderivpsi=0.0;
                 ^
rlm_anova.c:1426:10: warning: unused variable 'vs' [-Wunused-variable]
   double vs=0.0,m,varderivpsi=0.0;
          ^~
rlm_anova.c:1419:10: warning: unused variable 'scale' [-Wunused-variable]
   double scale=0.0;
          ^~~~~
rlm_anova.c:1418:10: warning: unused variable 'Kappa' [-Wunused-variable]
   double Kappa=0.0;      /* A correction factor */
          ^~~~~
rlm_anova.c:1417:10: warning: unused variable 'sumderivpsi' [-Wunused-variable]
   double sumderivpsi=0.0; /* sum of psi'(r_i) */
          ^~~~~~~~~~~
rlm_anova.c:1415:10: warning: unused variable 'sumpsi2' [-Wunused-variable]
   double sumpsi2=0.0;  /* sum of psi(r_i)^2 */
          ^~~~~~~
rlm_anova.c:1414:10: warning: unused variable 'k1' [-Wunused-variable]
   double k1 = psi_k;   /*  was 1.345; */
          ^~
rlm_anova.c: In function 'rlm_wfit_anova_given_probe_effects_engine':
rlm_anova.c:1505:10: warning: unused variable 'endprobe' [-Wunused-variable]
   double endprobe;
          ^~~~~~~~
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c rlm_se.c -o rlm_se.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c rma_background4.c -o rma_background4.o
rma_background4.c: In function 'R_rma_bg_correct':
rma_background4.c:509:12: warning: 'PMcopy' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return PMcopy;
            ^~~~~~
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c rma_common.c -o rma_common.o
"C:/rtools40/mingw64/bin/"gcc  -I"D:/biocbuild/bbs-3.15-bioc/R/include" -DNDEBUG     -I"C:/extsoft/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fno-reorder-blocks-and-partition  -c weightedkerneldensity.c -o weightedkerneldensity.o
C:/rtools40/mingw64/bin/gcc -shared -s -static-libgcc -o preprocessCore.dll tmp.def R_colSummarize.o R_plmd_interfaces.o R_plmr_interfaces.o R_rlm_interfaces.o R_subColSummarize.o R_subrcModel_interfaces.o avg.o avg_log.o biweight.o init_package.o lm.o log_avg.o log_median.o matrix_functions.o median.o median_log.o medianpolish.o plmd.o plmr.o psi_fns.o qnorm.o rlm.o rlm_anova.o rlm_se.o rma_background4.o rma_common.o weightedkerneldensity.o -LD:/biocbuild/bbs-3.15-bioc/R/bin/x64 -lRlapack -LD:/biocbuild/bbs-3.15-bioc/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/x64 -LC:/extsoft/lib -LD:/biocbuild/bbs-3.15-bioc/R/bin/x64 -lR
installing to D:/biocbuild/bbs-3.15-bioc/R/library/00LOCK-preprocessCore/00new/preprocessCore/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'preprocessCore'
    finding HTML links ... done
    colSummarize                            html  
    normalize.quantiles                     html  
    normalize.quantiles.in.blocks           html  
    normalize.quantiles.robust              html  
    normalize.quantiles.target              html  
    rcModelPLMd                             html  
    rcModelPLMr                             html  
    rcModels                                html  
    rma.background.correct                  html  
    subColSummarize                         html  
    subrcModels                             html  
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (preprocessCore)
Making 'packages.html' ... done

Tests output

preprocessCore.Rcheck/tests/PLMdtest.Rout


R Under development (unstable) (2021-11-21 r81221) -- "Unsuffered Consequences"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> 
> 
> library(preprocessCore)
> 
> 
> values <- rnorm(100)
> group.labels <- sample(0:4,replace=TRUE, 100)
> 
> results <- double(10000)
> ngroups <- 2
> 
> 
> for (i in 1:10000){
+        values <- rnorm(100,sd=1)
+        values <- values/sd(values)
+        group.labels <- sample(0:(ngroups-1),replace=TRUE, 100)
+        blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(ngroups), as.integer(group.labels),double(1))
+        results[i] <- blah[[5]]
+ }
> 
> plot(sort(results),qchisq(0:9999/10000,ngroups-1))
> lm(qchisq(0:9999/10000,ngroups-1) ~ sort(results))

Call:
lm(formula = qchisq(0:9999/10000, ngroups - 1) ~ sort(results))

Coefficients:
  (Intercept)  sort(results)  
    -0.002862       0.980728  

> 
> 
> 
> boxplot(values ~ group.labels,ylim=c(-2,2))
> 
> 
> 
> sc <- median(abs(resid(lm(values ~ 1))))/0.6745
> sum((resid(lm(values ~ 1))/sc)^2)/2
[1] 48.29886
> sum((resid(lm(values ~ as.factor(group.labels)))/sc)^2)/2
[1] 48.23265
> 
> 
> values <- rnorm(100)
> group.labels <- sample(0:4,replace=TRUE, 100)
> values[group.labels == 1] <- values[group.labels == 1] + 0.4
> 
> 
> blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(5), as.integer(group.labels),double(1))
> 
> boxplot(values ~ group.labels,ylim=c(-2,2))
> 
> 
> 
> library(preprocessCore)
> 
> .C("R_test_get_design_matrix",as.integer(4),as.integer(5))
1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 
1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 
0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 
0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 
0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 
0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 
0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 
0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 
0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 
0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 

1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 
1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 
0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 
0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 
0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 
0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 
0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 
0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 -1.00 
0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 
0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 -1.00 

1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 
0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 
0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 
0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 
0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 
[[1]]
[1] 4

[[2]]
[1] 5

> 
> 
> 
> chips <- as.factor(rep(c(1,2,3,4,5,6),c(5,5,5,5,5,5)))
> probes <- rep(c(1,3,4,5,6),6)
>        
> probes[c(1,6,11)] <- 2
> ##probes[24 + c(8,16,24)] <- 10
> probes <- as.factor(probes)
> 
> 
> model.matrix(~ -1 + probes)%*%contr.sum(6)
   [,1] [,2] [,3] [,4] [,5]
1     0    1    0    0    0
2     0    0    1    0    0
3     0    0    0    1    0
4     0    0    0    0    1
5    -1   -1   -1   -1   -1
6     0    1    0    0    0
7     0    0    1    0    0
8     0    0    0    1    0
9     0    0    0    0    1
10   -1   -1   -1   -1   -1
11    0    1    0    0    0
12    0    0    1    0    0
13    0    0    0    1    0
14    0    0    0    0    1
15   -1   -1   -1   -1   -1
16    1    0    0    0    0
17    0    0    1    0    0
18    0    0    0    1    0
19    0    0    0    0    1
20   -1   -1   -1   -1   -1
21    1    0    0    0    0
22    0    0    1    0    0
23    0    0    0    1    0
24    0    0    0    0    1
25   -1   -1   -1   -1   -1
26    1    0    0    0    0
27    0    0    1    0    0
28    0    0    0    1    0
29    0    0    0    0    1
30   -1   -1   -1   -1   -1
> 
> 
> probes <- rep(c(1,3,4,5,6),6)
>        
> probes[c(1,6,11)] <- 2
> probes[c(20,25,30)] <- 7
> probes <- as.factor(probes)
> model.matrix(~ -1 + probes)%*%contr.sum(7)
   [,1] [,2] [,3] [,4] [,5] [,6]
1     0    1    0    0    0    0
2     0    0    1    0    0    0
3     0    0    0    1    0    0
4     0    0    0    0    1    0
5     0    0    0    0    0    1
6     0    1    0    0    0    0
7     0    0    1    0    0    0
8     0    0    0    1    0    0
9     0    0    0    0    1    0
10    0    0    0    0    0    1
11    0    1    0    0    0    0
12    0    0    1    0    0    0
13    0    0    0    1    0    0
14    0    0    0    0    1    0
15    0    0    0    0    0    1
16    1    0    0    0    0    0
17    0    0    1    0    0    0
18    0    0    0    1    0    0
19    0    0    0    0    1    0
20   -1   -1   -1   -1   -1   -1
21    1    0    0    0    0    0
22    0    0    1    0    0    0
23    0    0    0    1    0    0
24    0    0    0    0    1    0
25   -1   -1   -1   -1   -1   -1
26    1    0    0    0    0    0
27    0    0    1    0    0    0
28    0    0    0    1    0    0
29    0    0    0    0    1    0
30   -1   -1   -1   -1   -1   -1
> 
> 
> 
> 
> probes <- rep(c(1,3,4,5,6),6)
>        
> probes[c(1,6,11)] <- 2
> probes[c(5,10,15)] <- 7
> probes <- as.factor(probes)
> model.matrix(~ -1 + probes)%*%contr.sum(7)
   [,1] [,2] [,3] [,4] [,5] [,6]
1     0    1    0    0    0    0
2     0    0    1    0    0    0
3     0    0    0    1    0    0
4     0    0    0    0    1    0
5    -1   -1   -1   -1   -1   -1
6     0    1    0    0    0    0
7     0    0    1    0    0    0
8     0    0    0    1    0    0
9     0    0    0    0    1    0
10   -1   -1   -1   -1   -1   -1
11    0    1    0    0    0    0
12    0    0    1    0    0    0
13    0    0    0    1    0    0
14    0    0    0    0    1    0
15   -1   -1   -1   -1   -1   -1
16    1    0    0    0    0    0
17    0    0    1    0    0    0
18    0    0    0    1    0    0
19    0    0    0    0    1    0
20    0    0    0    0    0    1
21    1    0    0    0    0    0
22    0    0    1    0    0    0
23    0    0    0    1    0    0
24    0    0    0    0    1    0
25    0    0    0    0    0    1
26    1    0    0    0    0    0
27    0    0    1    0    0    0
28    0    0    0    1    0    0
29    0    0    0    0    1    0
30    0    0    0    0    0    1
> 
> 
> 
> probes <- rep(c(1,3,4,5,6),6)
>        
> probes[c(1,6,11)] <- 2
> probes[1+c(1,6,11)] <- 8
> probes[2+c(1,6,11)] <- 9
> probes[3+c(1,6,11)] <- 10
> probes[c(5,10,15)] <- 7
> probes <- as.factor(probes)
> model.matrix(~ -1 + probes)%*%contr.sum(10)
   [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
1     0    1    0    0    0    0    0    0    0
2     0    0    0    0    0    0    0    1    0
3     0    0    0    0    0    0    0    0    1
4    -1   -1   -1   -1   -1   -1   -1   -1   -1
5     0    0    0    0    0    0    1    0    0
6     0    1    0    0    0    0    0    0    0
7     0    0    0    0    0    0    0    1    0
8     0    0    0    0    0    0    0    0    1
9    -1   -1   -1   -1   -1   -1   -1   -1   -1
10    0    0    0    0    0    0    1    0    0
11    0    1    0    0    0    0    0    0    0
12    0    0    0    0    0    0    0    1    0
13    0    0    0    0    0    0    0    0    1
14   -1   -1   -1   -1   -1   -1   -1   -1   -1
15    0    0    0    0    0    0    1    0    0
16    1    0    0    0    0    0    0    0    0
17    0    0    1    0    0    0    0    0    0
18    0    0    0    1    0    0    0    0    0
19    0    0    0    0    1    0    0    0    0
20    0    0    0    0    0    1    0    0    0
21    1    0    0    0    0    0    0    0    0
22    0    0    1    0    0    0    0    0    0
23    0    0    0    1    0    0    0    0    0
24    0    0    0    0    1    0    0    0    0
25    0    0    0    0    0    1    0    0    0
26    1    0    0    0    0    0    0    0    0
27    0    0    1    0    0    0    0    0    0
28    0    0    0    1    0    0    0    0    0
29    0    0    0    0    1    0    0    0    0
30    0    0    0    0    0    1    0    0    0
> 
> 
> 
> 
> 
> 
> 
> 
> 
> true.probes <- c(4,3,2,1,-1,-2,-3,-4)
> 
> true.chips  <- c(8,9,10,11,12,13)
> 
> 
> y <- outer(true.probes,true.chips,"+")
> 
> 
> 
> estimate.coefficients <- function(y){
+ 
+ 
+ colmean <- apply(y,2,mean)
+ 
+ y <- sweep(y,2,FUN="-",colmean)
+ 
+ rowmean <- apply(y,1,mean)
+ y <- sweep(y,1,FUN="-",rowmean)
+ 
+ 
+ list(y,colmean,rowmean)
+ }
> estimate.coefficients(y)
[[1]]
     [,1] [,2] [,3] [,4] [,5] [,6]
[1,]    0    0    0    0    0    0
[2,]    0    0    0    0    0    0
[3,]    0    0    0    0    0    0
[4,]    0    0    0    0    0    0
[5,]    0    0    0    0    0    0
[6,]    0    0    0    0    0    0
[7,]    0    0    0    0    0    0
[8,]    0    0    0    0    0    0

[[2]]
[1]  8  9 10 11 12 13

[[3]]
[1]  4  3  2  1 -1 -2 -3 -4

> 
> 
> 
> y <- outer(true.probes,true.chips,"+")
> 
> 
> estimate.coefficients(y)
[[1]]
     [,1] [,2] [,3] [,4] [,5] [,6]
[1,]    0    0    0    0    0    0
[2,]    0    0    0    0    0    0
[3,]    0    0    0    0    0    0
[4,]    0    0    0    0    0    0
[5,]    0    0    0    0    0    0
[6,]    0    0    0    0    0    0
[7,]    0    0    0    0    0    0
[8,]    0    0    0    0    0    0

[[2]]
[1]  8  9 10 11 12 13

[[3]]
[1]  4  3  2  1 -1 -2 -3 -4

> 
> 
> 
> 
> y2 <- sweep(y,2,FUN="-",apply(y,2,mean))
> 
> 
> 
> c(3.875, 2.875,  1.875,  0.875,
+  -1.125, -2.125, -3.125, -4, -2.25)
[1]  3.875  2.875  1.875  0.875 -1.125 -2.125 -3.125 -4.000 -2.250
> 
> 
> 
> 
> cp <- rep(c(1,2,3,4,5,6),rep(8,6))
> pr <- rep(c(1,2,3,4,5,6,7,8),6)
> 
> 
> pr[c(32,40,48)] <- 9
> 
> 
> 
> 
> true.probes <- c(4,3,2,1,-1,-2,-3,-4)
> 
> true.chips  <- c(8,9,10,11,12,10)
> 
> 
> y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.1)
> 
> y[8,4:6] <- c(11,12,10)+2 + rnorm(3,0,0.1)
> 
> 
> lm(as.vector(y) ~  -1 + as.factor(cp) + C(as.factor(pr),"contr.sum"))

Call:
lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), 
    "contr.sum"))

Coefficients:
                as.factor(cp)1                  as.factor(cp)2  
                        8.1770                          9.2381  
                as.factor(cp)3                  as.factor(cp)4  
                       10.2615                         11.3041  
                as.factor(cp)5                  as.factor(cp)6  
                       12.2737                         10.2017  
C(as.factor(pr), "contr.sum")1  C(as.factor(pr), "contr.sum")2  
                        3.7629                          2.7514  
C(as.factor(pr), "contr.sum")3  C(as.factor(pr), "contr.sum")4  
                        1.7336                          0.8283  
C(as.factor(pr), "contr.sum")5  C(as.factor(pr), "contr.sum")6  
                       -1.1463                         -2.2207  
C(as.factor(pr), "contr.sum")7  C(as.factor(pr), "contr.sum")8  
                       -3.2803                         -4.2913  

> 
> 
> matplot(y,type="l")
> matplot(matrix(fitted( lm(as.vector(y) ~  -1 + as.factor(cp) +
+ C(as.factor(pr),"contr.sum"))),ncol=6),type="l")
> 
> 
> library(preprocessCore)
> true.probes <- c(4,3,2,1,-1,-2,-3,-4)
> 
> true.chips  <- c(8,9,10,11,12,10)
> 
> y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.25)
> 
> y[8,4:6] <- c(11,12,10)+ 2.5 + rnorm(3,0,0.25)
> y[5,4:6] <- c(11,12,10)+-2.5 + rnorm(3,0,0.25)
> 
> 
> 
> ###.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6),
> ###		as.integer(2), as.integer(c(1,1,1,2,2,2) - 1),
> ###		double(6 +2*8),
> ###		double(48),
> ###		double(48))
> 
> ###matplot(matrix(.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6),
> ###		as.integer(2), as.integer(c(1,1,1,2,2,2) - 1),
> ###		double(6 +2*8),
> ###		double(48),
> ###		double(48))[[7]],ncol=6))
> ###		
> 
> 
> ##.Call("R_plmd_model",y,0,1.3345,as.integer(c(1,1,1,2,2,2) - 1),as.integer(2))
> rcModelPLM(y)
$Estimates
 [1]  8.4130792  9.0687865 10.2819401 11.2529988 12.2948792 10.3181259
 [7]  3.6647742  2.6784640  1.7865734  0.7509912 -2.1442686 -2.2583246
[13] -3.5453126 -0.9328971

$Weights
          [,1]      [,2]      [,3]      [,4]      [,5]      [,6]
[1,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[2,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[3,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[4,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[5,] 0.4744337 0.4301594 0.4061086 0.4777518 0.3775988 0.4690357
[6,] 1.0000000 0.9745849 1.0000000 1.0000000 1.0000000 1.0000000
[7,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[8,] 0.1050016 0.1362193 0.1115650 0.1207155 0.0936710 0.1455742

$Residuals
            [,1]         [,2]        [,3]        [,4]        [,5]        [,6]
[1,]  0.15044071 -0.173487621  0.03028897  0.13678140 -0.08948914 -0.05453431
[2,] -0.19615143 -0.191562492  0.19922048  0.18135843  0.05573721 -0.04860219
[3,] -0.27344014  0.188705712 -0.07920074 -0.02202798  0.13633124  0.04963191
[4,] -0.08975809  0.004472607 -0.03827963 -0.04107101 -0.14819771  0.31283384
[5,]  0.74014019  0.816168874  0.86465969 -0.73495143 -0.92989414 -0.74860938
[6,]  0.26647042  0.360030659  0.02319678 -0.13229555 -0.17288131 -0.33537080
[7,]  0.14242409 -0.178939119 -0.13523874 -0.12276030  0.21848807  0.07602600
[8,] -3.34407124 -2.577844665 -3.14733912  2.90881801  3.74863707  2.41210344

$StdErrors
 [1] 0.2101749 0.2100042 0.2111577 0.2094457 0.2124842 0.2085643 0.2089596
 [8] 0.2089596 0.2089596 0.2089596 0.2916369 0.2092922 0.2089596 0.5329592

$Scale
[1] 0.2612504

> rcModelPLMd(y,c(1,1,1,2,2,2))
$Estimates
 [1]  7.8114099  8.5428471  9.7349979 10.8041467 11.8450442  9.8216667
 [7]  4.1633402  3.1782154  2.2932898  1.2406811 -0.7790954 -2.4837048
[13] -1.4688890 -2.0067917 -3.0451432 -3.5166844  2.4247821

$Weights
          [,1]      [,2]      [,3] [,4]      [,5]      [,6]
[1,] 0.6911713 1.0000000 1.0000000    1 1.0000000 1.0000000
[2,] 1.0000000 1.0000000 0.7110986    1 1.0000000 1.0000000
[3,] 0.9815771 0.8427961 1.0000000    1 1.0000000 1.0000000
[4,] 1.0000000 1.0000000 1.0000000    1 0.9318366 0.5482634
[5,] 1.0000000 1.0000000 1.0000000    1 1.0000000 1.0000000
[6,] 1.0000000 1.0000000 0.7990941    1 1.0000000 1.0000000
[7,] 0.7184327 1.0000000 1.0000000    1 1.0000000 1.0000000
[8,] 1.0000000 0.3294420 1.0000000    1 0.2084131 0.3901507

$Residuals
            [,1]        [,2]        [,3]          [,4]         [,5]        [,6]
[1,]  0.25354409 -0.14611411  0.07866521  8.706764e-02 -0.138220081 -0.05664106
[2,] -0.09423357 -0.16537450  0.24641119  1.304591e-01  0.005820752 -0.05189447
[3,] -0.17848722  0.20792877 -0.03897495 -7.989220e-02  0.079449843  0.03937471
[4,]  0.02222137  0.04072220  0.01897269 -8.190870e-02 -0.188052569  0.31960316
[5,] -0.02336373 -0.02306491  0.04642864  5.333694e-02 -0.140622949  0.08728600
[6,]  0.07870413  0.09653451 -0.21929664  6.502373e-02  0.025420789 -0.09044452
[7,]  0.24392403 -0.15316905 -0.08846594 -1.740775e-01  0.168153686  0.07231581
[8,] -0.15861465  0.53188206 -0.01660967 -9.052916e-06  0.840792828 -0.44911661

$StdErrors
 [1] 0.08930195 0.07755914 0.07714959 0.06605473 0.07892768 0.07892768
 [7] 0.07806849 0.07755225 0.08769574 0.08692194 0.10329962 0.10226701
[13] 0.12647414 0.10226701 0.07806849 0.12571848 0.00000000

$WasSplit
[1] 0 0 0 0 1 1 0 1

> 
> ###R_plmd_model(SEXP Y, SEXP PsiCode, SEXP PsiK, SEXP Groups, SEXP Ngroups)
> 
> 
> 
> 
> 
> pr[seq(3,48,8)][1:3] <- 10
> 
> y[seq(3,48,8)][1:3] <- c(8,9,10) -3 + rnorm(3,0,0.1)
> lm(as.vector(y) ~  -1 + as.factor(cp) + C(as.factor(pr),"contr.sum"))

Call:
lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), 
    "contr.sum"))

Coefficients:
                as.factor(cp)1                  as.factor(cp)2  
                         8.083                           8.859  
                as.factor(cp)3                  as.factor(cp)4  
                         9.994                          10.684  
                as.factor(cp)5                  as.factor(cp)6  
                        11.807                           9.686  
C(as.factor(pr), "contr.sum")1  C(as.factor(pr), "contr.sum")2  
                         4.084                           3.098  
C(as.factor(pr), "contr.sum")3  C(as.factor(pr), "contr.sum")4  
                         2.404                           1.171  
C(as.factor(pr), "contr.sum")5  C(as.factor(pr), "contr.sum")6  
                        -1.723                          -1.837  
C(as.factor(pr), "contr.sum")7  C(as.factor(pr), "contr.sum")8  
                        -3.126                          -3.680  
C(as.factor(pr), "contr.sum")9  
                         2.653  

> 
> 
> proc.time()
   user  system elapsed 
   1.67    0.07    1.75 

preprocessCore.Rcheck/tests/qnormtest.Rout


R Under development (unstable) (2021-11-21 r81221) -- "Unsuffered Consequences"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(preprocessCore)
> 
> err.tol <- 10^-8
> 
> x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3)
> x
     [,1]  [,2] [,3]
[1,]  100 110.0  120
[2,]   15  16.5   18
[3,]  200 220.0  240
[4,]  250 275.0  300
> normalize.quantiles(x)
      [,1]  [,2]  [,3]
[1,] 110.0 110.0 110.0
[2,]  16.5  16.5  16.5
[3,] 220.0 220.0 220.0
[4,] 275.0 275.0 275.0
> 
> x.norm.truth <- matrix(rep(c(110.0,16.5,220,275.0),3),ncol=3)
> 
> if (all(abs(x.norm.truth - normalize.quantiles(x)) < err.tol) != TRUE){
+ 	stop("Disagreement in normalize.quantiles(x)")
+ }
> 
> normalize.quantiles.determine.target(x)
[1]  16.5 110.0 220.0 275.0
> 
> x.norm.target.truth <- c(16.5,110.0,220.0,275.0)
> 
> if (all(abs(x.norm.target.truth - normalize.quantiles.determine.target(x)) < err.tol) != TRUE){
+ 	stop("Disagreement in normalize.quantiles.determine.target(x)")
+ }
> 
> 
> y <- x
> y[2,2] <- NA
> y
     [,1] [,2] [,3]
[1,]  100  110  120
[2,]   15   NA   18
[3,]  200  220  240
[4,]  250  275  300
> normalize.quantiles(y)
          [,1]      [,2]      [,3]
[1,] 134.44444  47.66667 134.44444
[2,]  47.66667        NA  47.66667
[3,] 226.11111 180.27778 226.11111
[4,] 275.00000 275.00000 275.00000
> 
> y.norm.target.truth <- c(47.6666666666667,134.4444444444444,226.1111111111111,275.0000000000000)
> 
> y.norm.truth <- matrix(c(134.4444444444444,  47.6666666666667, 134.4444444444444,
+                          47.6666666666667,                NA,  47.6666666666667,
+                         226.1111111111111, 180.2777777777778, 226.1111111111111,
+                         275.0000000000000, 275.0000000000000, 275.0000000000000),byrow=TRUE,ncol=3)
> 
> 
> if (all(abs(y.norm.truth - normalize.quantiles(y)) < err.tol,na.rm=TRUE) != TRUE){
+ 	stop("Disagreement in normalize.quantiles(y)")
+ }
> 
> 
> 
> if (all(abs(y.norm.target.truth - normalize.quantiles.determine.target(y)) < err.tol) != TRUE){
+ 	stop("Disagreement in normalize.quantiles.determine.target(y)")
+ }
> 
> 
> 
> if (all(abs(normalize.quantiles.use.target(y,y.norm.target.truth) - y.norm.truth) < err.tol,na.rm=TRUE) != TRUE){
+ 		stop("Disagreement in normalize.quantiles.use.target(y)")
+ }
> 
> 
> x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3)
> rownames(x) <- letters[1:4]
> colnames(x) <- LETTERS[1:3]
> y <- normalize.quantiles(x, keep.names = TRUE)
> if(!all(colnames(x)==colnames(y))){
+     stop("Disagreement between initial and final column names despite keep.names=TRUE")
+ }
> if(!all(rownames(x)==rownames(y))){
+     stop("Disagreement between initial and final row names despite keep.names=TRUE")
+ }
> 
> proc.time()
   user  system elapsed 
   0.15    0.03    0.17 

Example timings

preprocessCore.Rcheck/preprocessCore-Ex.timings

nameusersystemelapsed
colSummarize000
normalize.quantiles.in.blocks0.040.000.03
rcModelPLMd0.020.000.02
rcModelPLMr0.010.000.01
rcModels000
subColSummarize000
subrcModels0.010.000.01