Debian Codegraph @

PORTING

raw
1 * src (by BDR)
2
3 Convert *.r by ratfor on Solaris. Use modreg versions of
4 bsplvd.f bvalue.f bvalus.f qsbart.f sbart.f sgram.f sinerp.f sslvrg.f stxwx.f
5
6 Change things like work(1) to work(*)
7
8 As namat used a double workspace for integers, arrange for an iwork array.
9
10 Change things like n-center, center logical (and dble(center) may not
11 work on all platforms)
12
13 Change uses of bvalue, bsplvd to match those in the modreg code (which has
14 an extra lent argument).
15
16 Chase down a difference in usage of dbksl and replace it by direct calls
17 to dtrsl.
18
19 In dmarss.f, the var array was used without being calculated, so add
20 additional call to qrreg to calculate it.
21
22 * src:
23
24 ** Get additionally needed files from gamfit on Statlib/general.
25
26 ** mspline.r:
27 change
28 temp=dble(n-center) / cost - dfoff
29 to
30 temp=dble(n-dble(center)) / cost - dfoff
31 because center is logical
32
33 ** remove unneeded symbols from *.r (warnings of f2c) as follows:
34
35 bruto.r 36 ier ntype
36 dcalcvar.r 43 dn wmean dwrss xbar xcov
37 dmarss.r 88 tem
38 176 m v
39 614 flagtot
40 621 temm
41 mspline.r 457 k
42 537 wmean
43 584 xbar
44 737 wmean
45 splsm.r 117 scrat
46
47 ** replace real -> double in
48
49 ** convert *.r to FORTRAN using ratfor
50 ** convert *.f to C using f2c -A -a -P
51 ** beautify using MM's f2c-clean
52
53 * Copy dumpdata.mda to R/mda.q.
54
55 * mda.q:
56
57 ** change all single to double
58
59 ** change all sys.parent() to sys.frame(sys.parent())
60
61 ** delete code related to is.loaded() or {.bruto,.mars,.mda}.object.
62
63 ** in predict.fda(), replace
64 levels(pclass) <- dimnames(means)[[1]]
65 return(factor(pclass))
66 by
67 return(factor(pclass, labels = dimnames(means)[[1]]))
68
69 ** in mda.fit(), remove unneeded final strcuture() wrapper.
70
71 * Create zzz.R.
72
73 * Use `Sd2Rd -x' to convert documentation sources to Rd format. The
74 examples need major attention.