File: README

package info (click to toggle)
rsprng 1.0-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 224 kB
  • sloc: ansic: 157; sh: 5; makefile: 1
file content (65 lines) | stat: -rw-r--r-- 2,570 bytes parent folder | download | duplicates (7)
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
"rsprng" is an R package providing interface to SPRNG (Scalable Parallel
Random Number Generator) library.

Copywright (2001) Na (Michael) Li <nali@umn.edu>

=============================================================================
NOTICE
=============================================================================

rsprng is free software; you can redistribute  it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.

rsprng is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.
    
A copy of the GNU General Public License is available on the World Wide
Web at http://www.gnu.org/copyleft/gpl.html.  You can also obtain it by
writing to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
MA 02139, USA.

=============================================================================
INSTALLATION:
=============================================================================

1.  Install SPRNG 2.0 (http:/sprng.cs.fsu.edu).  Note that the
    generator pmlcg requires libgmp but it provides an outdated version of
    gmp.h.  Find the following line in sprng2.0/SRC/pmlcg/pmlcg.c:

    #include "gmp.h"

    and change it to

    #include <gmp.h>

    to use the system header file.  It won't compile otherwise. 

    If you encounter problems compiling SPRNG 2.0, this note
    http://www.biostat.umn.edu/~nali/rsprng.html might be of help.
    I have also made available some precompiled SPRNG packages at
    http://www.biostat.umn.edu/~nali/SoftwareListing.html.

2.  Install rsprng:

    R CMD INSTALL rsprng_version.tgz 
    
    If the SPRNG header file and library file are in a non-standard path use,
    
    R CMD INSTALL --configure-args=--with-sprng=/path/to/sprng rsprng_version.tgz 

    The header files of SPRNG are ssumed to be in /path/to/sprng/include and
    the library .a files are in /path/to/sprng/lib.  Alternative, one can also
    define environment variable SPRNG_ROOT to be the path (so that R CMD check
    can run).

    By default pointer checking for SPRNG is enabled, to disable it, pass
    '--configure-args=--disable-check-pointers' to 'R INSTALL'.

    libgmp.a is needed at linking.  If it is installed in a non-standard
    location, you can specify it via:

    R CMD INSTALL --configure-args='--with-gmp=/path/to/libgmp.a'.