redCodeDir: Retrieve the directory containing the REDUCE code which is...

View source: R/redcas.R

redCodeDirR Documentation

Retrieve the directory containing the REDUCE code which is part of redcas.

Description

redCodeDir retrieves the full path to the directory containing the REDUCE code which is part of redcas.

Usage

redCodeDir()

Details

In addition to returning the REDUCE code directory, redCodedir assigns three environment variables:

REDCODEDIR

the full path to the directory containing the REDUCE code which is the reduce sub-directory of the redcas package;

REDCAS_CODE_PATH

the full path to the program redcas.red which defines REDUCE procedures used by redcas;

TMPRINT_PSL_PATH

the full path to the program tmprint-psl.red which makes a modified version of the REDUCE package TMPRINT which implements LaTeX rendering for the PSL dialect. The change is minor and is designed to ensure that the TeXmacs markup is identical to that of CSL.

You can use the two programs directly in REDUCE. You need only load redcas.red as it loads tmprint-psl.red if executing in PSL. In order to have tmprint-psl.red loaded, you must assign the environment variable TMPRINT_PSL_PATH before starting REDUCE.

Value

redCodeDir returns the full path to the directory containing the REDUCE code which is part of redcas.

Author(s)

martin gregory

Examples

redCodeDir()
Sys.getenv("REDCAS_CODE_PATH")
Sys.getenv("TMPRINT_PSL_PATH")

redcas documentation built on April 12, 2025, 1:40 a.m.