safe_deparse_JPH {lazy.symbolic} | R Documentation |
式をスペースなしの1つの文字列にデパースする
Description
deparse() のラッパーで、式を必ず1つの文字列として返す関数です。 通常の 'deparse()' は、長い式の場合 'width.cutoff' の制約により 複数要素の文字ベクトルに分割されることがあります。 本関数では 'width.cutoff = 500' を指定して分割を避け、 さらにスペースをすべて削除した文字列を返します。
Arguments
expr |
クオートされた式(quoted expression) |
Details
英語のヘルプファイルは: safe_deparse
Value
文字列
Examples
modify_math_operators()
text=
"Diag(A)%*%B%*%Diag(C)%*%H-Diag(A)%*%B%*%E%*%H+Diag(A)%*%F%*%H+t(A)%*%G%*%H"
expr=parse(text=text)[[1]]
deparse(expr)
safe_deparse(expr)
[Package lazy.symbolic version 1.0.0.20250830 ]