id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	work_issues	upstream	reviewer	author	merged	dependencies	stopgaps
9201	Add missing R modules and make `spkg-check` pass on Solaris	mpatel	drkirkby	"Some R modules aren't built/installed on t2.  This makes builds fail when `SAGE_CHECK` is set.  From [comment:ticket:8306:67 this comment] at #8306:

Running R's `make check` on t2 gives
{{{
 Collecting examples for package `stats'
   Extracting from parsed Rd's ..............................
 Running examples in package `stats'
 Error: testing 'stats' failed
 Execution halted
 make[5]: *** [test-Examples-Base] Error 1
}}}
Here's some detail from `src/tests/Examples/stats-Ex.Rout.fail`:
{{{
 > contrasts(ffs) <- contr.sum(5, sparse=TRUE)[,1:2]; contrasts(ffs)
 Error in .Diag(levels, sparse = sparse) :
   contr*(.., sparse=TRUE) needs package ""Matrix"" correctly installed
 Calls: contr.sum -> .Diag
 Execution halted
}}}
[http://sage.math.washington.edu/home/mpatel/trac/8306/r-2.10.1.p2.log This log] also shows that R's Matrix package isn't built/installed successfully:
{{{
 Loading required package: Matrix
 Error in dyn.load(file, DLLpath = DLLpath, ...) :
   unable to load shared library '/scratch/mpatel/sage-4.4.4.alpha0-j64-par-chk/spkg/build/r-2.10.1.p2/src/library/Matrix/libs/Matrix.so':
   ld.so.1: R: fatal: libgcc_s.so.1: open failed: No such file or directory
 Error : require(Matrix, save = FALSE) is not TRUE
}}}
Moreover, comparing the output of `ls SAGE_LOCAL/lib/R/library` on sage.math and t2 builds indicates that we're also missing the class, mgcv, nnet, rpart, spatial, and survival packages on t2.
"	defect	new	major		porting: Solaris			drkirkby ggrafendorfer		N/A					
