This initial version can start an interactive REDUCE session, send REDUCE commands to the session, retrieve and format the output of those commands and close the session. Any REDUCE command which does not require user interaction may be executed and the output is returned as a character vector or list of character vectors. There are also two specialized functions which format: asltx produces LaTeX and redSolve returns the output of the REDUCE solve operator as a custom R object.
In order to use redcas
on Linux either the CSL or PSL
dialect must be installed and in the search path. For MacOS, only CSL is
available. There are other options besides the search path for finding
the REDUCE executable - see the documentation for
redStart()
for details.
REDUCE is available from http://www.reduce-algebra.com and has been tested with versions >=6339.
Installation is done in the usual way:
install.packages("redcas")
redcas
can be installed even if there is no REDUCE
installation, but cannot be used.
The package redcas
comes with 328 tests. if no REDUCE
installation is present 46 tests involving only R code will be executed
which the remaining 282 will be skipped. A summary of the test results
are contained in the file 99-test-results.Rout
in the test
output directory.