as_expr: Convert caracas object to R

View source: R/parse_python.R

as_exprR Documentation

Convert caracas object to R

Description

Potentially calls doit().

Usage

as_expr(x, first_doit = TRUE)

## S3 method for class 'caracas_symbol'
as.expression(x, ...)

## S3 method for class 'caracas_solve_sys_sol'
as.expression(x, ...)

Arguments

x

caracas_symbol

first_doit

Try doit() first

...

not used

Examples

if (has_sympy()) {
  v <- vector_sym(2)
  x <- as_expr(v)
  x
  y <- as.expression(v)
  y
}


caracas documentation built on June 22, 2024, 10:59 a.m.