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

CHECK report for preprocessCore on veracruz1

This page was generated on 2018-04-12 13:31:03 -0400 (Thu, 12 Apr 2018).

Package 1063/1472HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
preprocessCore 1.40.0
Ben Bolstad
Snapshot Date: 2018-04-11 16:45:18 -0400 (Wed, 11 Apr 2018)
URL: https://git.bioconductor.org/packages/preprocessCore
Branch: RELEASE_3_6
Last Commit: 969bb0e
Last Changed Date: 2017-10-30 12:38:20 -0400 (Mon, 30 Oct 2017)
malbec1 Linux (Ubuntu 16.04.1 LTS) / x86_64  OK  OK  OK UNNEEDED, same version exists in internal repository
tokay1 Windows Server 2012 R2 Standard / x64  OK  OK  OK  OK UNNEEDED, same version exists in internal repository
veracruz1 OS X 10.11.6 El Capitan / x86_64  OK  OK [ OK ] OK UNNEEDED, same version exists in internal repository

Summary

Package: preprocessCore
Version: 1.40.0
Command: /Library/Frameworks/R.framework/Versions/Current/Resources/bin/R CMD check --no-vignettes --timings preprocessCore_1.40.0.tar.gz
StartedAt: 2018-04-12 07:50:33 -0400 (Thu, 12 Apr 2018)
EndedAt: 2018-04-12 07:51:10 -0400 (Thu, 12 Apr 2018)
EllapsedTime: 37.4 seconds
RetCode: 0
Status:  OK 
CheckDir: preprocessCore.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Versions/Current/Resources/bin/R CMD check --no-vignettes --timings preprocessCore_1.40.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory ‘/Users/biocbuild/bbs-3.6-bioc/meat/preprocessCore.Rcheck’
* using R version 3.4.4 (2018-03-15)
* using platform: x86_64-apple-darwin15.6.0 (64-bit)
* using session charset: UTF-8
* using option ‘--no-vignettes’
* checking for file ‘preprocessCore/DESCRIPTION’ ... OK
* this is package ‘preprocessCore’ version ‘1.40.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 for sufficient/correct file permissions ... 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 ... OK
* 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 compiled code ... OK
* 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: OK


Installation output

preprocessCore.Rcheck/00install.out

* installing *source* package ‘preprocessCore’ ...
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for library containing pthread_create... none required
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking if PTHREAD_STACK_MIN is defined... yes
configure: Enabling threading for preprocessCore
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_colSummarize.c -o R_colSummarize.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_plmd_interfaces.c -o R_plmd_interfaces.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_plmr_interfaces.c -o R_plmr_interfaces.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_rlm_interfaces.c -o R_rlm_interfaces.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_subColSummarize.c -o R_subColSummarize.o
R_subColSummarize.c:97:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:99:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:103:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:105:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:265:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:267:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:271:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:273:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:444:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:436:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:438:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:442:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:608:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:616:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:614:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:610:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:779:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:781:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:787:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:785:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:951:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:953:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:957:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:959:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:1127:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:1121:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:1123:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:1129:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:1290:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer;
                    ^
R_subColSummarize.c:1298:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:1296:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:1292:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:1472:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:1466:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:1470:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:1647:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subColSummarize.c:1645:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subColSummarize.c:1641:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subColSummarize.c:1639:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                    ^
R_subColSummarize.c:1639:30: warning: unused variable 'buffer2' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                             ^
R_subColSummarize.c:1603:14: warning: unused function 'subColSummarize_medianpolish_group' [-Wunused-function]
static void *subColSummarize_medianpolish_group(void *data){
             ^
41 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o
R_subrcModel_interfaces.c:64:20: warning: unused variable 'buffer2' [-Wunused-variable]
  double *buffer, *buffer2;
                   ^
R_subrcModel_interfaces.c:64:11: warning: unused variable 'buffer' [-Wunused-variable]
  double *buffer, *buffer2;
          ^
R_subrcModel_interfaces.c:79:11: warning: unused variable 'weights' [-Wunused-variable]
  double *weights;
          ^
R_subrcModel_interfaces.c:80:11: warning: unused variable 'se' [-Wunused-variable]
  double *se;
          ^
R_subrcModel_interfaces.c:154:11: warning: unused variable 'results' [-Wunused-variable]
  double *results, *buffer, *buffer2;
          ^
R_subrcModel_interfaces.c:154:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                    ^
R_subrcModel_interfaces.c:162:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subrcModel_interfaces.c:160:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subrcModel_interfaces.c:156:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subrcModel_interfaces.c:154:30: warning: unused variable 'buffer2' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                             ^
R_subrcModel_interfaces.c:382:10: warning: unused variable 'scale' [-Wunused-variable]
  double scale=-1.0;
         ^
R_subrcModel_interfaces.c:361:11: warning: unused variable 'buffer' [-Wunused-variable]
  double *buffer, *buffer2;
          ^
R_subrcModel_interfaces.c:361:20: warning: unused variable 'buffer2' [-Wunused-variable]
  double *buffer, *buffer2;
                   ^
R_subrcModel_interfaces.c:475:7: warning: unused variable 'ncur_rows' [-Wunused-variable]
  int ncur_rows;
      ^
R_subrcModel_interfaces.c:477:9: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
R_subrcModel_interfaces.c:469:21: warning: unused variable 'buffer' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                    ^
R_subrcModel_interfaces.c:469:30: warning: unused variable 'buffer2' [-Wunused-variable]
  double *results, *buffer, *buffer2;
                             ^
R_subrcModel_interfaces.c:471:8: warning: unused variable 'cur_rows' [-Wunused-variable]
  int *cur_rows;
       ^
R_subrcModel_interfaces.c:469:11: warning: unused variable 'results' [-Wunused-variable]
  double *results, *buffer, *buffer2;
          ^
19 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c avg.c -o avg.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c avg_log.c -o avg_log.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c biweight.c -o biweight.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c init_package.c -o init_package.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c lm.c -o lm.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c log_avg.c -o log_avg.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c log_median.c -o log_median.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c matrix_functions.c -o matrix_functions.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c median.c -o median.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c median_log.c -o median_log.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c medianpolish.c -o medianpolish.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c plmd.c -o plmd.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c plmr.c -o plmr.o
plmr.c:82:13: warning: unused function 'XTWY_R' [-Wunused-function]
static void XTWY_R(int *rows, int *cols, double *out_weights, double *y,double *xtwy){
            ^
plmr.c:152:13: warning: unused function 'XTWX_R' [-Wunused-function]
static void XTWX_R(int *rows, int *cols, double *out_weights, double *xtwx){
            ^
plmr.c:279:13: warning: unused function 'XTWX_R_inv' [-Wunused-function]
static void XTWX_R_inv(int *rows, int *cols, double *xtwx){
            ^
3 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c psi_fns.c -o psi_fns.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c qnorm.c -o qnorm.o
qnorm.c:1882:12: warning: unused variable 'j' [-Wunused-variable]
  size_t i,j,row_mean_ind;
           ^
qnorm.c:1887:7: warning: unused variable 'non_na' [-Wunused-variable]
  int non_na;
      ^
qnorm.c:2074:14: warning: variable 'target_rows' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  } else if (isMatrix(target)){
             ^˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
/Library/Frameworks/R.framework/Resources/include/Rinternals.h:1259:19: note: expanded from macro 'isMatrix'
#define isMatrix                Rf_isMatrix
                                ^
qnorm.c:2087:55: note: uninitialized use occurs here
  qnorm_c_using_target_l(Xptr, rows, cols ,targetptr, target_rows);
                                                      ^˜˜˜˜˜˜˜˜˜˜
qnorm.c:2074:10: note: remove the 'if' if its condition is always true
  } else if (isMatrix(target)){
         ^˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
qnorm.c:2055:21: note: initialize the variable 'target_rows' to silence this warning
  size_t target_rows, target_cols;
                    ^
                     = 0
qnorm.c:2476:12: warning: unused variable 'j' [-Wunused-variable]
  size_t i,j,row_mean_ind;
           ^
qnorm.c:2481:7: warning: unused variable 'non_na' [-Wunused-variable]
  int non_na;
      ^
qnorm.c:2790:11: warning: unused variable 'sample_percentiles' [-Wunused-variable]
  double *sample_percentiles;
          ^
qnorm.c:2791:11: warning: unused variable 'datvec' [-Wunused-variable]
  double *datvec;
          ^
qnorm.c:2924:12: warning: unused variable 'j' [-Wunused-variable]
  size_t i,j,ind,target_ind;
           ^
qnorm.c:2924:14: warning: unused variable 'ind' [-Wunused-variable]
  size_t i,j,ind,target_ind;
             ^
qnorm.c:2924:18: warning: unused variable 'target_ind' [-Wunused-variable]
  size_t i,j,ind,target_ind;
                 ^
qnorm.c:2926:14: warning: unused variable 'dimat' [-Wunused-variable]
  dataitem **dimat;
             ^
qnorm.c:2928:11: warning: unused variable 'row_mean' [-Wunused-variable]
  double *row_mean = target;
          ^
qnorm.c:2930:11: warning: unused variable 'ranks' [-Wunused-variable]
  double *ranks = (double *)Calloc((rows),double);
          ^
qnorm.c:2931:10: warning: unused variable 'samplepercentile' [-Wunused-variable]
  double samplepercentile;
         ^
qnorm.c:2932:10: warning: unused variable 'target_ind_double' [-Wunused-variable]
  double target_ind_double,target_ind_double_floor;
         ^
qnorm.c:2932:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable]
  double target_ind_double,target_ind_double_floor;
                           ^
qnorm.c:2934:7: warning: unused variable 'targetnon_na' [-Wunused-variable]
  int targetnon_na = targetrows;
      ^
qnorm.c:2935:7: warning: unused variable 'non_na' [-Wunused-variable]
  int non_na = 0;
      ^
qnorm.c:2939:11: warning: unused variable 'sample_percentiles' [-Wunused-variable]
  double *sample_percentiles;
          ^
qnorm.c:2940:11: warning: unused variable 'datvec' [-Wunused-variable]
  double *datvec;
          ^
qnorm.c:3191:14: warning: variable 'target_rows' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  } else if (isMatrix(target)){
             ^˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
/Library/Frameworks/R.framework/Resources/include/Rinternals.h:1259:19: note: expanded from macro 'isMatrix'
#define isMatrix                Rf_isMatrix
                                ^
qnorm.c:3205:77: note: uninitialized use occurs here
  qnorm_c_using_target_via_subset_l(Xptr, rows, cols, subsetptr, targetptr, target_rows);
                                                                            ^˜˜˜˜˜˜˜˜˜˜
qnorm.c:3191:10: note: remove the 'if' if its condition is always true
  } else if (isMatrix(target)){
         ^˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
qnorm.c:3172:21: note: initialize the variable 'target_rows' to silence this warning
  size_t target_rows, target_cols;
                    ^
                     = 0
21 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c rlm.c -o rlm.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c rlm_anova.c -o rlm_anova.o
rlm_anova.c:1235:10: warning: unused variable 'endprobe' [-Wunused-variable]
  double endprobe;
         ^
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:1419:10: warning: unused variable 'scale' [-Wunused-variable]
  double scale=0.0;
         ^
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:1426:10: warning: unused variable 'vs' [-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:19: warning: unused variable 'varderivpsi' [-Wunused-variable]
  double vs=0.0,m,varderivpsi=0.0; 
                  ^
rlm_anova.c:1505:10: warning: unused variable 'endprobe' [-Wunused-variable]
  double endprobe;
         ^
10 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c rlm_se.c -o rlm_se.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c rma_background4.c -o rma_background4.o
rma_background4.c:343:10: warning: unused variable 'param' [-Wunused-variable]
  double param[3];
         ^
rma_background4.c:342:10: warning: unused variable 'j' [-Wunused-variable]
  size_t j;
         ^
2 warnings generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c rma_common.c -o rma_common.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/include  -Wall -g -O2  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DUSE_PTHREADS=1 -fPIC  -Wall -g -O2  -c weightedkerneldensity.c -o weightedkerneldensity.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o preprocessCore.so 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 -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Users/biocbuild/bbs-3.6-bioc/meat/preprocessCore.Rcheck/preprocessCore/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (preprocessCore)

Tests output

preprocessCore.Rcheck/tests/PLMdtest.Rout


R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (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.003292       0.991205  

> 
> 
> 
> 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] 41.03102
> sum((resid(lm(values ˜ as.factor(group.labels)))/sc)^2)/2
[1] 40.37273
> 
> 
> 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.1683                          9.1981  
                as.factor(cp)3                  as.factor(cp)4  
                       10.1656                         11.2204  
                as.factor(cp)5                  as.factor(cp)6  
                       12.2477                         10.1947  
C(as.factor(pr), "contr.sum")1  C(as.factor(pr), "contr.sum")2  
                        3.7361                          2.8772  
C(as.factor(pr), "contr.sum")3  C(as.factor(pr), "contr.sum")4  
                        1.7880                          0.7819  
C(as.factor(pr), "contr.sum")5  C(as.factor(pr), "contr.sum")6  
                       -1.2400                         -2.1953  
C(as.factor(pr), "contr.sum")7  C(as.factor(pr), "contr.sum")8  
                       -3.2595                         -4.2123  

> 
> 
> 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.2520081  9.4498145 10.2479234 11.4488187 12.3369412 10.3454607
 [7]  3.6590824  2.6029267  1.8055951  0.6531616 -1.8190756 -2.3194696
[13] -3.4629449 -1.1192757

$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.4225888 0.5912871 0.4504464 0.5278744 0.5506915 0.3879891
[6,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[7,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
[8,] 0.1313976 0.1400733 0.1374223 0.1194749 0.1449344 0.1476644

$Residuals
            [,1]        [,2]        [,3]         [,4]       [,5]        [,6]
[1,] -0.06597906 -0.23295893 -0.03438855  0.167236153  0.1215611  0.04452932
[2,] -0.21444078 -0.04839116 -0.08291535  0.044641772  0.2744023  0.02670322
[3,]  0.34633412  0.21822540 -0.31743152 -0.088459950  0.0597307 -0.21839875
[4,] -0.17303601  0.18688188  0.31155310  0.172363502 -0.3225982 -0.17516423
[5,]  1.08119567  0.77268767  1.01432479 -0.865526626 -0.8296610 -1.17761999
[6,]  0.15138165 -0.25200649  0.34857853 -0.292631126 -0.3893516  0.43402906
[7,] -0.04424900  0.12828544 -0.22538249 -0.003175049  0.2562277 -0.11170665
[8,] -3.47732404 -3.26198099 -3.32488130  3.824351625  3.1525657  3.09425848

$StdErrors
 [1] 0.2545239 0.2505544 0.2536208 0.2528045 0.2511476 0.2545460 0.2522328
 [8] 0.2522328 0.2522328 0.2522328 0.3380227 0.2522328 0.2522328 0.6063975

$Scale
[1] 0.3397638

> rcModelPLMd(y,c(1,1,1,2,2,2))
$Estimates
 [1]  7.9372996  9.1367263  9.9412156 11.2085379 12.0672162  9.9585949
 [7]  3.9643118  2.9081561  2.1008622  0.9696620 -0.5515047 -2.4777209
[13] -2.0558201 -3.1577155 -4.1625030  2.4622720

$Weights
          [,1] [,2]      [,3]      [,4]      [,5]      [,6]
[1,] 1.0000000    1 1.0000000 1.0000000 1.0000000 1.0000000
[2,] 1.0000000    1 1.0000000 1.0000000 1.0000000 1.0000000
[3,] 0.7099266    1 0.8485950 1.0000000 1.0000000 1.0000000
[4,] 1.0000000    1 0.8605720 1.0000000 0.7030094 1.0000000
[5,] 1.0000000    1 1.0000000 1.0000000 1.0000000 1.0000000
[6,] 1.0000000    1 0.6631428 0.8216286 0.6774368 0.4660353
[7,] 1.0000000    1 1.0000000 1.0000000 1.0000000 1.0000000
[8,] 1.0000000    1 1.0000000 0.5375466 1.0000000 1.0000000

$Residuals
            [,1]        [,2]        [,3]        [,4]        [,5]       [,6]
[1,] -0.05649990 -0.22510002 -0.03291007  0.10228756  0.08605667  0.1261658
[2,] -0.20496163 -0.04053225 -0.08143686 -0.02030682  0.23889790  0.1083397
[3,]  0.36577548  0.23604650 -0.30599084 -0.14344634  0.03418850 -0.1268001
[4,] -0.17482797  0.18346968  0.30176046  0.09614379 -0.36937375 -0.1047989
[5,]  0.12833327 -0.18179498  0.05346171  0.03339950  0.09870932 -0.1321088
[6,]  0.20244061 -0.20256778  0.39163682 -0.31599992 -0.38327622  0.5572453
[7,] -0.03476984  0.13614434 -0.22390401 -0.06812364  0.22072335 -0.0300702
[8,] -0.11938829  0.09433452  0.02505378  0.48308467 -0.15925710 -0.1004234

$StdErrors
 [1] 0.09360644 0.08592520 0.11261749 0.10172874 0.10281634 0.09390614
 [7] 0.09387119 0.09387119 0.11512819 0.11366493 0.13424659 0.13518170
[13] 0.16073735 0.09387119 0.13424659 0.00000000

$WasSplit
[1] 0 0 0 0 1 0 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  
                         7.920                           9.092  
                as.factor(cp)3                  as.factor(cp)4  
                        10.008                          10.917  
                as.factor(cp)5                  as.factor(cp)6  
                        11.726                           9.684  
C(as.factor(pr), "contr.sum")1  C(as.factor(pr), "contr.sum")2  
                         4.115                           3.059  
C(as.factor(pr), "contr.sum")3  C(as.factor(pr), "contr.sum")4  
                         2.325                           1.109  
C(as.factor(pr), "contr.sum")5  C(as.factor(pr), "contr.sum")6  
                        -1.364                          -1.864  
C(as.factor(pr), "contr.sum")7  C(as.factor(pr), "contr.sum")8  
                        -3.007                          -4.164  
C(as.factor(pr), "contr.sum")9  
                         2.839  

> 
> 
> proc.time()
   user  system elapsed 
  2.033   0.070   2.126 

preprocessCore.Rcheck/tests/qnormtest.Rout


R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (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)")
+ }
> 
> 
> 
> 
> proc.time()
   user  system elapsed 
  0.226   0.042   0.246 

Example timings

preprocessCore.Rcheck/preprocessCore-Ex.timings

nameusersystemelapsed
colSummarize0.0030.0010.004
normalize.quantiles.in.blocks0.0480.0040.052
rcModelPLMd0.0160.0020.020
rcModelPLMr0.0260.0040.030
rcModels0.0080.0050.014
subColSummarize0.0060.0010.008
subrcModels0.0120.0090.021