forked from yziquel/OCaml-R
-
Notifications
You must be signed in to change notification settings - Fork 4
/
INSTALL
46 lines (36 loc) · 1.4 KB
/
INSTALL
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
OCaml-R installation
*** What you need ***
- OCaml 3.12.0 or above installed
- R >= 2.9 with development libraries
*** How to compile ***
make build
opam install .
*** How to use ***
[gesundheit:~ 16:29]$ocaml
Objective Caml version 3.12.1
# #use "topfind";;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads
- : unit = ()
# #require "R.stats";;
/usr/lib/ocaml/unix.cma: loaded
/usr/lib/ocaml/str.cma: loaded
/usr/lib/ocaml/calendar: added to search path
/usr/lib/ocaml/calendar/calendarLib.cma: loaded
/usr/local/lib/ocaml/3.12.1/R: added to search path
/usr/local/lib/ocaml/3.12.1/R/R.cma: loaded
/usr/local/lib/ocaml/3.12.1/R/R_interpreter.cma: loaded
/usr/local/lib/ocaml/3.12.1/R/R_stats.cma: loaded
# R.floats_of_t (Rstats.rnorm 10);;
- : float list =
[-0.684320682540535; -0.728849803333674551; -0.0875471375368341298;
0.287256467518054226; -0.254776382424770242; -2.05319647197097943;
-0.886318938084490693; 2.34391951464416692; 1.04742079183489634;
1.00112645242338938]