Test the Embeddable R Library
More information can be found at the
R Developer's site
Test Applications
-
- Rtest
-
Just prints the vector
c(1, 2, ..., 10)
-
- Rplot
- Creates a basic plot of
c(1,2,..., 10)
in the default device and then quits immediately.
-
- Rpostscript
-
Produces a plot of
1:100 using the Postscript
graphics device. This creates a file named Rplots.ps
(Messes up the y axis label.)
-
- Rerror
- Reads a function definition from an external file (
code.R) and calls it
which in turn generates an "error" via stop.
The local error handler defined for this application
catches this error and recovers (by quitting!).
-
- Other Tests
-
This has been tested under two other situations:
- Embedded within ggobi, the successor to xgobi, which will be released soon.
- As a procedural language within Postsgres.
See R in Postgres
Notes
-
- There is something odd happening with the command line
arguments being processed in
Rf_initEmbeddedR(). For
some reason, arguments such as --silent and --no-save are being
ignored. See Rpostscript.c.
-
Duncan Temple Lang
<duncan@research.bell-labs.com>
Last modified: Wed Oct 11 08:23:55 EDT 2000