forked from marcschwartz/R-IQ-OQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
R-IQ-OQ.Rnw
1172 lines (546 loc) · 30.3 KB
/
R-IQ-OQ.Rnw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2013, Marc Schwartz <marc_schwartz@me.com>
%
% This software is distributed under the terms of the GNU General
% Public License Version 2, June 1991.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% IMPORTANT NOTES FOLLOW. REVIEW ALL OF THEM.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% RUN THIS BEFORE INSTALLING CRAN PACKAGES!!!!!!!!!!!!!!!!!!
% DO NOT RUN THIS FROM ANY R GUI'S, AS THEY MAY AFFECT THE ENVIRONMENT
% IN WHICH R IS RUNNING, COMPROMISING THE INTEGRITY OF THE CHECKS. THE
% DEFAULT USER .Rprofile MAY ALSO AFFECT THE ENVIRONMENT AS CAN THE PRESENCE
% OF ANY CRAN PACKAGES THAT ARE NOT PART OF THE OFFICIAL R DISTRIBUTION.
% NOTE THAT YOU MAY NEED TO RUN THE FOLLOWING:
%
% export LC_COLLATE=C LANG=en LC_TIME=C
%
% IN YOUR TERMINAL SHELL BEFORE RUNNING R BELOW IN ORDER TO MATCH REFERENCE TEST RESULTS DUE
% TO LOCALE ISSUES. IF YOU GET ANY TEXT COMPARISON (DIFF) ERRORS, TRY THIS TO
% RESOLVE THOSE ISSUES. ON OSX MOUNTAIN LION I USE THIS INCANTATION AS PER THE
% R INSTALLATION AND ADMINISTRATION MANUAL
% http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Testing-a-Unix_002dalike-Installation
% RUN R FROM THE TERMINAL/CONSOLE COMMAND LINE USING:
% R --vanilla (For Windows: Rterm.exe --vanilla)
% Then run:
% Sweave("R-IQ-OQ.Rnw")
% OR YOU CAN RUN R IN BATCH MODE:
% R --vanilla CMD Sweave R-IQ-OQ.Rnw (For Windows: Rterm.exe --vanilla CMD Sweave R-IQ-OQ.Rnw )
% Note that while this program is running, test result files will be created in a sub-directory
% called 'IQ-OQ-TestOutput'. You may wish to inspect these files as part of
% your review and, if part of your operating procedures, tar/zip the folder tree and
% archive it as part of your testing documentation.
% The above steps will take approximately 20 minutes to run on current hardware and create a LaTeX source document called R-IQ-OQ.tex
% Then run:
% pdflatex R-IQ-OQ.tex (Likely more than once. Look for messages output regarding running it again)
% The final result will be R-IQ-OQ.pdf, which will be the final report file.
% CODING NOTES:
% SWEAVE CANNOT CAPTURE OUTPUT TO STDERR, THOUGH SOME WORKAROUNDS HAVE BEEN POSTED.
% SO CANNOT JUST CALL THE TEST FUNCTIONS DIRECTLY HERE.
% ATTEMPTS TO USE EITHER capture.output() or sink() PLUS sink(type = "messages")
% DO NOT IN FACT CAPTURE ALL OF THE OUTPUT GENERATED BY THE PACKAGE TESTS. MOST
% OF THE OUTPUT GOES TO STDERR AND IS CAUGHT BY THE DOUBLE sink() APPROACH, HOWEVER
% SOME OUTPUT FROM THE PACKAGE TESTS, SUCH AS DIFF ERRORS IN THE SHELL ARE NOT CAPTURED AND END
% UP IN THE DOCUMENT BODY, SEPARATE FROM THE LISTINGS OUTPUT WHICH ARE OUT OF
% SEQUENCE AND NOT HELPFUL IN BEING ASSOCIATED WITH A SPECIFIC TEST.
% THE USE OF system(CMD) IN THE VARIOUS PACKAGE TESTS NEEDS TO BE VERIFIED ON
% WINDOWS BASED SYSTEMS FOR CORRECT FUNCTIONING AND PORTABILITY.
% IQ refers to Installation Qualification: has the software been installed correctly?
% OQ refers to Operational Qualification: is the software operating correctly?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[10pt]{article}
\usepackage[paperwidth=8.5in,paperheight=11in,includefoot=false,lmargin=0.5in,rmargin=0.5in,tmargin=1.0in,bmargin=1.0in]{geometry}
\usepackage{colortbl}
\usepackage{color}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{stmaryrd}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{fancyhdr}
\usepackage[linktocpage=true,colorlinks=true,urlcolor=blue,linkcolor=black]{hyperref}
\usepackage[format=hang,font=bf,belowskip=1ex,singlelinecheck=off]{caption}
\usepackage[hang,norule,stable,multiple]{footmisc}
\usepackage{listings}
\lstloadlanguages{R}
\begin{document}\pagestyle{fancy}
\fancyhf{}
\fancyfoot[L]{R Software IQ OQ}
\fancyfoot[C]{\thepage}
\fancyfoot[R]{\today}
\renewcommand\footnotemargin{1em}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0.4pt}
\addtocontents{toc}{\protect\thispagestyle{fancy}}
\addtocontents{lof}{\protect\thispagestyle{fancy}}
\addtocontents{lot}{\protect\thispagestyle{fancy}}
%% Reset table/figure counters with each new section
\makeatletter\@addtoreset{table}{section}\makeatother
\makeatletter\@addtoreset{figure}{section}\makeatother
%% Table/Figure counter format to Section.Table
\renewcommand{\thetable}{\arabic{section}.\arabic{table}}
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
%% Adjust numwidth wider so that table/figure number in the LOT/LOF do
%% not collide with the text descriptions
\makeatletter
\renewcommand\l@figure{\@dottedtocline{1}{1.5em}{3em}}
\makeatother
\makeatletter
\renewcommand\l@table{\@dottedtocline{1}{1.5em}{3em}}
\makeatother
%% Set for no paragraph indentation and skip a line between paragraphs
\setlength\parindent{0in}
\addtolength{\parskip}{\baselineskip}
%% Set R for listings package
%% http://en.wikibooks.org/wiki/LaTeX/Colors
%% separate additional keywords with commas
\lstset{
language=R,
caption=,
basicstyle=\scriptsize\ttfamily,
commentstyle=\ttfamily\color{Gray},
numbers=left,
numberstyle=\ttfamily\color{Gray}\footnotesize,
stepnumber=1,
numbersep=5pt,
backgroundcolor=\color{White},
showspaces=false,
showstringspaces=false,
showtabs=false,
xleftmargin=0.25in,
xrightmargin=0.25in,
frame=single,
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=false,
title=\lstname,
escapeinside={},
keywordstyle=\ttfamily\color{Red},
stringstyle=\ttfamily\color{ForestGreen},
morekeywords={OK,NA,PASS,FAIL,FAILED,failed,Execution,halted},
deletekeywords={R,C,for,terms,is,if,file,path,For,Platform,machine,system,status,rev,packages,factor,
package,graphics,methods,class,grid,Version,or,as,double,min,exp,integer,max,var,
q,inherits,report,ifelse,on,help,browser,quit,try,options,plot,ps,save,lines,list,
character,attr,se,~,_,/}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<results=hide,echo=false>>=
RVersionInfo <- R.Version()
Version <- RVersionInfo$version.string
Arch <- gsub("_", "\\\\\\\\_", RVersionInfo$arch)
Platform <- gsub("_", "\\\\\\\\_", RVersionInfo$platform)
require("tools")
options(width = 120)
# Disable fancy "curly" quotes for LaTeX
options(useFancyQuotes = FALSE)
# Check to be sure that the external code files are present.
CMDFileNames <- paste("CMDFile", 1:7, ".r", sep = "")
CMDFileResults <- sapply(CMDFileNames,
function(x) if (file_test("-f", x)) TRUE else FALSE)
if (any(!CMDFileResults))
stop("One or more of the CMDFile*.r files is missing. Cannot continue.")
# Clean up test output folder, create it
if(file.exists("IQ-OQ-TestOutput")) {
unlink("IQ-OQ-TestOutput", recursive = TRUE)
}
stopifnot(dir.create("IQ-OQ-TestOutput"))
@
%% START OF TITLE PAGE
\begin{titlepage}
\begin{center}
\textbf{\Large{
Installation and Operational Qualification Testing For R Statistical Software\\
\Sexpr{Version}\\
Architecture: \Sexpr{Arch}\\
Platform: \Sexpr{Platform}\\
}}
\vspace{1.5in}
\textbf{\Large{\emph{
\today\\
}}}
\end{center}
\end{titlepage}
\tableofcontents
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% THE LANGUAGE BELOW WOULD NEED TO BE MODIFIED IF A BINARY INSTALLATION OF R
%% IS FROM A THIRD PARTY REPOSITORY, SUCH AS FROM DEBIAN OR FEDORA LINUX
%% REPOSITORIES.
The R software being tested in this report was downloaded from The Comprehensive R Archive Network (CRAN):
\hspace{20pt}\url{http://cran.r-project.org/}
or a CRAN mirror:
\hspace{20pt}\url{http://cran.us.r-project.org/mirrors.html}
if this is a stable release or from:
\hspace{20pt}\url{http://R.research.att.com/}
if a patched release for Apple's OSX operating system.
The R software was installed on this computer in a manner consistent with
``The R Installation and Administration Manual'' (the Manual) which is available from:
\hspace{20pt}\url{http://cran.r-project.org/doc/manuals/R-admin.html}
The Manual provides recommendations for the post-installation testing of R. The procedures for this
testing are described in:
\hspace{20pt}\url{http://cran.r-project.org/doc/manuals/R-admin.html#Testing-a-Unix_002dalike-Installation}
for Unix, Linux and OSX installations and:
\hspace{20pt}\url{http://cran.r-project.org/doc/manuals/R-admin.html#Testing-a-Windows-Installation}
for Windows installations. The results contained within this report are based upon an automated implementation of the
procedures described in the Manual.
General guidance for the use of R in regulated clinical trials has been provided by the R Foundation
in a document entitled:
\begin{center}
R: Regulatory Compliance and Validation Issues\\
A Guidance Document for the Use of R in Regulated Clinical Trial Environments
\end{center}
which is available from:
\hspace{20pt}\url{http://www.r-project.org/doc/R-FDA.pdf}
The above document describes various characteristics of R, including the Software Development Life Cycle (SDLC)
and relevant aspects of 21 CFR Part 11 compliance issues as they may pertain to the use of R for statistical analysis
applications for clinical trials.
The output on the following pages of this report describe various technical characteristics of the computer upon which R
is running, the R installation, current R session information and is followed by a series of tests for the so-called ``Base''
and ``Recommended'' packages which are a part of the official R distribution, as released by the R Foundation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Installation Qualification (IQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{R.home()}, showing where R was installed on this computer:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output the R startup banner
cat(R.home(), sep = "\n")
@
\end{lstlisting}
The following is the output of \texttt{system("R -e 'q()'")}, presenting the R welcome banner
as displayed from a default R console (terminal) to show the R console correctly running and then exiting:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output the R startup banner
Result0 <- try(system(paste(shQuote(file.path(R.home("bin"), "R")), "-e", shQuote("q()")), intern = TRUE))
if (class(Result0) != "try-error")
cat(Result0, sep = "\n")
@
\end{lstlisting}
\clearpage
<<results=hide,echo=false>>=
# Check to see if only Base and Recommended packages are installed
BaseRecommendedOnly <- all(installed.packages()[, "Priority"] %in% c("base", "recommended"))
MSG <- ifelse(BaseRecommendedOnly,
"\\\\textcolor{ForestGreen}{\\\\textbf{Only Base and Recommended packages are currently installed.}}",
"\\\\textcolor{Red}{\\\\textbf{WARNING: There are packages currently installed that are NOT part of the official R Foundation distribution of R.}}")
@
Only ``Base'' and ``Recommended'' packages, which are a part of the official R Foundation distribution of R,
should be installed while running these tests. A scan of the currently installed packages indicates:
\begin{center}
\Sexpr{MSG}
\end{center}
The following is the output of \texttt{installed.packages()}.
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output currently installed packages
installed.packages()
@
\end{lstlisting}
\clearpage
The following is the output of \texttt{Sys.info()}, defining some details about the current system upon which R is running
and user information:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output current system information
Sys.info()
@
\end{lstlisting}
\clearpage
The following is the output of \texttt{.Platform}, defining some details of the platform upon which R was built (compiled):
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output .Platform details for current installation
.Platform
@
\end{lstlisting}
\clearpage
The following is the output of \texttt{R.version}, defining detailed information on the currently running version of R:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output R.version information for current installation
R.version
@
\end{lstlisting}
\clearpage
The following is the output of \texttt{.Machine}, defining the numerical characteristics of the computer upon which R
is running:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output current Machine specific information
.Machine
@
\end{lstlisting}
\clearpage
The following is the output of \texttt{sessionInfo()}, defining current R version, locale information and attached packages:
\begin{lstlisting}
<<results=tex,echo=false>>=
# Output current session information
sessionInfo()
@
\end{lstlisting}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Core Operational Qualification - System Tests (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledBasic("both")}, which runs a series of core system-wide operational
tests of the R installation, including various regression tests:
<<results=tex,echo=false>>=
InFile <- "CMDFile1.r"
OutFile <- "CMDFile1Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result1 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile1Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Base Package Operational Qualification - Package Examples (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledPackages(outDir = "IQ-OQ-TestOutput", scope = "base", types = "examples")},
which runs a series of operational tests of the R Base package code examples:
<<results=tex,echo=false>>=
InFile <- "CMDFile2.r"
OutFile <- "CMDFile2Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result2 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile2Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Base Package Operational Qualification - Package Vignettes (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledPackages(outDir = "IQ-OQ-TestOutput", scope = "base", types = "vignettes")},
which runs a series of operational tests of the R Base package vignette code examples:
<<results=tex,echo=false>>=
InFile <- "CMDFile3.r"
OutFile <- "CMDFile3Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result3 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile3Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Recommended Package Operational Qualification - Package Examples (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledPackages(outDir = "IQ-OQ-TestOutput", scope = "recommended", types = "examples")},
which runs a series of operational tests of the R Recommended package code examples:
<<results=tex,echo=false>>=
InFile <- "CMDFile4.r"
OutFile <- "CMDFile4Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result4 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile4Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Recommended Package Operational Qualification - Package Vignettes (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledPackages(outDir = "IQ-OQ-TestOutput", scope = "recommended", types = "vignettes")},
which runs a series of operational tests of the R Recommended package vignette code examples:
<<results=tex,echo=false>>=
InFile <- "CMDFile5.r"
OutFile <- "CMDFile5Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result5 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile5Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Base Package Operational Qualification - Package Tests (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following is the output of \texttt{testInstalledPackages(outDir = "IQ-OQ-TestOutput", scope = "base", types = "tests")},
which runs a series of operational tests of the R Base package code tests:
<<results=tex,echo=false>>=
InFile <- "CMDFile6.r"
OutFile <- "CMDFile6Out.txt"
CMD <- paste(shQuote(file.path(R.home("bin"), "R")),
"CMD BATCH --vanilla --no-timing", shQuote(InFile), shQuote(OutFile))
Result6 <- try(system(CMD))
@
\lstinputlisting[caption={}]{CMDFile6Out.txt}
The final line of the above output displays the status of running the above tests. ``PASS'' indicates a successful
running of the tests, a ``FAIL'' would indicate that an error was detected during the running of the tests.
There may be some tests where the result of performing a ``diff'' on two files that were being compared demonstrate a content
difference that may or may not be relevant and may be dependent upon locale settings. Any such differences displayed in the
above output should be reviewed in detail to determine their relevance to the Operational Qualification of this R installation.
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{R Recommended Package Operational Qualification - Package Tests (OQ)}
\addtocontents{lot}{\hfil}
\addtocontents{lof}{\hfil}
\clearpage