File: index.html

package info (click to toggle)
r-base 4.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112,924 kB
  • sloc: ansic: 291,338; fortran: 111,889; javascript: 14,798; yacc: 6,154; sh: 5,689; makefile: 5,239; tcl: 4,562; perl: 963; objc: 791; f90: 758; asm: 258; java: 31; sed: 1
file content (121 lines) | stat: -rw-r--r-- 3,210 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing the Embeddable R library</title>
<link rel=stylesheet href="../../doc/html/R.css" />
</head>

<body>
<h1>Test the Embeddable R Library</h1>

<p>
This a collection of tests for verifying that using R as a library
within another application (i.e. embedded R) works for this
installation. This is only relevant if one has configured R with the
<code>--enable-R-shlib </code> argument for the top-level
<code>configure</code>.
</p>

<p>
More information can be found at the 
<a href="https://developer.r-project.org/embedded.html">R Developers' site</a>
</p>

<h3>Test Applications</h3>
<dl>
  <dt>
    <a href="Rtest.c">Rtest</a>
  </dt>
  <dd>
    Just prints the vector <code>c(1, 2, ..., 10)</code>
  </dd>
  <dt>
    <a href="Rplot.c">Rplot</a>
  </dt>
  <dd> 
    Creates a basic plot of  <code>c(1,2,..., 10)</code>
    in the default device and then quits immediately.
  </dd>
  <dt>
    <a href="Rpostscript.c">Rpostscript</a>
  </dt>
  <dd>
    Produces a plot of <code>1:100</code> using the Postscript
    graphics device. This creates a file named <code>Rplots.ps</code>
  </dd>
  <dt>
    <a href="Rerror.c"> Rerror</a>
  </dt>
  <dd> 
    Reads a function definition from an external file
    (<a href="code.R"><code>code.R</code></a>) and calls it 
    which in turn generates an "error" via <code>stop()</code>.
    The local error handler defined for this application
    catches this error and recovers.
  </dd>
  <dt>
    <a href="RNamedCall.c">RNamedCall</a>
  </dt>
  <dd> 
    Calls a function with some named arguments.
  </dd>
  <dt>
    <a href="RParseEval.c">RParseEval</a>
  </dt>
  <dd> 
    Parses a string and evaluates the resulting expression(s).
  </dd>
  <dt>
    <a href="Rpackage.c">Rpackage</a>
  </dt>
  <dd> 
    Invokes <code>example()</code> for functions in ctest and mva
    to ensure that packages can be loaded into R in an embedded
    context.  These packages must be linked against libR.so.
  </dd>
  <dt>
    <a href="embeddedRCall.c">embeddedRCall.c</a>
  </dt>
  <dd> 
    Collection of routines used in the different tests.
  </dd>
  <dt>
    Other Tests
  </dt>
  <dd>
    This has been tested in many  other situations including the some of
    the former Omegahat packages: 
    <ul>
      <li>
	As a procedural language within <a href="https://www.postgresql.org">Postsgres</a>.
	See <a href="https://www.omegahat.net/DBMS/Postgres/R/RPostgres.pdf">R
	in Postgres</a>
      </li>
      <li> 
	<a href="https://www.omegahat.net/RSJava">SJava</a>
      </li>
      <li>
	<a href="https://www.omegahat.net/SNetscape">SNetscape</a>
      </li>
      <li>
	<a href="https://www.omegahat.net/SXalan">SXalan</a>
      </li>
      <li>
	<a href="https://www.omegahat.net/RSPython">RSPython</a>
      <li> 
	<a href="https://www.omegahat.net/SXalan">SXalan</a>
      </li>
      <li>
	<a href="https://www.omegahat.net/RSPerl">RSPerl</a>      
      </li>
    </ul>
    These can be used as example code for embedding R within other
    applications.
  </dd>
</dl>

<hr/>

</body>
</html>