easyp2code1: expands an easyp expression

Description Usage Arguments Details Value Examples

Description

(bn) Expands an easyp expression in the context precised by nom for the dimensions. The aim is to give the function easyp2code2 an easier input. Mainly checks are performed about the consistency between the proposed eas and the involved parents. Also eas is vectorized when its parentship asks for it.

Usage

1
easyp2code1(eas, nom, iin, transfo=FALSE, bugs=FALSE)

Arguments

eas

The easyp expression to deal with.

nom

The /nom/ giving the context of the expansion.

iin

node number concerned with eas.

transfo

Are rounding and transformation accepted?

bugs

Must the code be bugs or R (not yet implemented).

Details

Notice that rbsb.cni node is escaped from the variable/node names. Also that the node dimension and possible variable was already determined before calling the function.

Value

An interpretable character string to be proposed to easyp2code2

Examples

1
2
3
4
5
6
7
8
9
 rebastaba3k("RESET"); # (only for R checking)
 easyp2code1("{{A}}", rbsb.nom2, 2);
 easyp2code1(1234, rbsb.nom2, 2);
 easyp2code1("1234", rbsb.nom2, 2);
 easyp2code1("2*pi", rbsb.nom2, 2);
 easyp2code1("1+sqrt({{A}})", rbsb.nom2, 2);
 easyp2code1("1+sqrt({{A}}*{{B}})", rbsb.nom2, 2);
 easyp2code1(c(1234, 5678), rbsb.nom2, 2);
 ## Not run: easyp2code1(c("{{A}}", "{{B}}"), rbsb.nom2, 2);

rebastaba documentation built on May 2, 2019, 5:24 p.m.